[vlc-commits] [Git][videolan/vlc][master] decoder: fix pause/resume logging

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Nov 21 06:58:16 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
e2d84f18 by Steve Lhomme at 2023-11-21T06:34:50+00:00
decoder: fix pause/resume logging

The logic is inverted and we don't know which track it corresponds to.

- - - - -


1 changed file:

- src/input/decoder.c


Changes:

=====================================
src/input/decoder.c
=====================================
@@ -281,18 +281,20 @@ static void Decoder_ChangeOutputPause( vlc_input_decoder_t *p_owner, bool paused
 
     decoder_t *p_dec = &p_owner->dec;
 
-    msg_Dbg( p_dec, "toggling %s", paused ? "resume" : "pause" );
     switch( p_dec->fmt_in->i_cat )
     {
         case VIDEO_ES:
+            msg_Dbg( p_dec, "%s video", paused ? "pausing" : "resuming" );
             if( p_owner->p_vout != NULL && p_owner->vout_started )
                 vout_ChangePause( p_owner->p_vout, paused, date );
             break;
         case AUDIO_ES:
+            msg_Dbg( p_dec, "%s audio", paused ? "pausing" : "resuming" );
             if( p_owner->p_astream != NULL )
                 vlc_aout_stream_ChangePause( p_owner->p_astream, paused, date );
             break;
         case SPU_ES:
+            msg_Dbg( p_dec, "not really %s SPU", paused ? "pausing" : "resuming" );
             break;
         default:
             vlc_assert_unreachable();



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e2d84f180ded9cd464aea130d5de4026794aa0e1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e2d84f180ded9cd464aea130d5de4026794aa0e1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list