[vlc-commits] aout: add some debug when restarting
Rémi Denis-Courmont
git at videolan.org
Mon Jan 14 18:32:08 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 14 19:30:10 2013 +0200| [cb2c2c61a289aa4c3ac48c44ccaaf05fbada264a] | committer: Rémi Denis-Courmont
aout: add some debug when restarting
Far too many bugs in this code path recently.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb2c2c61a289aa4c3ac48c44ccaaf05fbada264a
---
src/audio_output/dec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index d0f3690..b211c56 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -137,6 +137,7 @@ static int aout_CheckReady (audio_output_t *aout)
if (restart & AOUT_RESTART_OUTPUT)
{ /* Reinitializes the output */
+ msg_Dbg (aout, "restarting output...");
if (owner->mixer_format.i_format)
aout_OutputDelete (aout);
owner->mixer_format = owner->input_format;
@@ -146,6 +147,7 @@ static int aout_CheckReady (audio_output_t *aout)
owner->mixer_format.i_format);
}
+ msg_Dbg (aout, "restarting filters...");
owner->sync.end = VLC_TS_INVALID;
owner->sync.resamp_type = AOUT_RESAMPLING_NONE;
@@ -168,6 +170,7 @@ void aout_RequestRestart (audio_output_t *aout, unsigned mode)
{
aout_owner_t *owner = aout_owner (aout);
atomic_fetch_or (&owner->restart, mode);
+ msg_Dbg (aout, "restart requested (%u)", mode);
}
/*
More information about the vlc-commits
mailing list