|
From: | Jonas 'Sortie' Termansen |
Subject: | Re: [Gnash-dev] MediaParser interface |
Date: | Fri, 22 Jul 2011 23:12:04 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 |
On 07/22/2011 11:05 PM, Sandro Santilli wrote:
Now, how can you tell if there's audio in a stream using such an object ? I guess you should keep taking items off the buffers to let MediaParser go on with parsing until it's looked at the whole input, making sure not to seek away from audio (like jumping to the very end, when audio is finished).
That sounds quite hacky.I suggest we make a bool headersParsed() function that signals whether getVideoInfo() is ready. If getVideoInfo() returns NULL, then there is no video. Until that point, there is no way to know whether there is no video, or whether no video has been detected yet. Same goes for audio.
[Prev in Thread] | Current Thread | [Next in Thread] |