mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 22:35:43 +00:00
Bug 687972. More logging...
This commit is contained in:
parent
996178d61f
commit
c76504fc38
@ -1971,6 +1971,10 @@ nsresult nsHTMLMediaElement::FinishDecoderSetup(nsMediaDecoder* aDecoder)
|
||||
{
|
||||
NS_ASSERTION(mLoadingSrc, "mLoadingSrc set up");
|
||||
|
||||
nsCAutoString src;
|
||||
GetCurrentSpec(src);
|
||||
printf("*** nsHTMLElement::FinishDecoderSetup() mDecoder=%p src=%s\n",
|
||||
aDecoder, src.get());
|
||||
mDecoder = aDecoder;
|
||||
AddMediaElementToURITable();
|
||||
|
||||
|
@ -751,6 +751,8 @@ private:
|
||||
void
|
||||
nsMediaChannelStream::CacheClientNotifyDataEnded(nsresult aStatus)
|
||||
{
|
||||
printf("*** nsMediaChannelStream::CacheClientNotifyDataEnded() mDecoder=%p\n", mDecoder.get());
|
||||
|
||||
NS_ASSERTION(NS_IsMainThread(), "Don't call on non-main thread");
|
||||
// NOTE: this can be called with the media cache lock held, so don't
|
||||
// block or do anything which might try to acquire a lock!
|
||||
@ -764,6 +766,8 @@ nsMediaChannelStream::CacheClientSeek(PRInt64 aOffset, bool aResume)
|
||||
{
|
||||
NS_ASSERTION(NS_IsMainThread(), "Don't call on non-main thread");
|
||||
|
||||
printf("*** nsMediaChannelStream::CacheClientSeek() mDecoder=%p\n", mDecoder.get());
|
||||
|
||||
CloseChannel();
|
||||
|
||||
if (aResume) {
|
||||
@ -783,6 +787,8 @@ nsMediaChannelStream::CacheClientSeek(PRInt64 aOffset, bool aResume)
|
||||
nsresult
|
||||
nsMediaChannelStream::CacheClientSuspend()
|
||||
{
|
||||
printf("*** nsMediaChannelStream::CacheClientSuspend() mDecoder=%p\n", mDecoder.get());
|
||||
|
||||
Suspend(false);
|
||||
|
||||
mDecoder->NotifySuspendedStatusChanged();
|
||||
@ -792,6 +798,8 @@ nsMediaChannelStream::CacheClientSuspend()
|
||||
nsresult
|
||||
nsMediaChannelStream::CacheClientResume()
|
||||
{
|
||||
printf("*** nsMediaChannelStream::CacheClientResume() mDecoder=%p\n", mDecoder.get());
|
||||
|
||||
Resume();
|
||||
|
||||
mDecoder->NotifySuspendedStatusChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user