diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index a337672d16..f3ea040ff6 100644 --- a/gst/mpegdemux/gstmpegdemux.c +++ b/gst/mpegdemux/gstmpegdemux.c @@ -2467,6 +2467,7 @@ gst_ps_demux_scan_ts (GstPsDemux * demux, const guint8 * data, if (mode == SCAN_SCR) { *rts = scr; ret = TRUE; + goto beach; } /* read the 4 bytes for the PES sync code */