mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
dvddemux: small code cleanup
Don't duplicate the 'if' check. Makes the 2nd condition easier to read also and avoid empty 'if' when logging is disabled.
This commit is contained in:
parent
466d0054c6
commit
253afc02c9
1 changed files with 5 additions and 6 deletions
|
@ -1200,12 +1200,11 @@ gst_dvd_demux_synchronise_pads (GstMPEGDemux * mpeg_demux,
|
|||
", threshold %" GST_TIME_FORMAT, i,
|
||||
GST_TIME_ARGS (dvd_demux->subpicture_stream[i]->cur_ts),
|
||||
GST_TIME_ARGS (threshold));
|
||||
}
|
||||
if (dvd_demux->subpicture_stream[i]
|
||||
&& (dvd_demux->subpicture_stream[i]->cur_ts < threshold)) {
|
||||
DEMUX_CLASS (mpeg_demux)->sync_stream_to_time (mpeg_demux,
|
||||
dvd_demux->subpicture_stream[i], new_ts);
|
||||
dvd_demux->subpicture_stream[i]->cur_ts = new_ts;
|
||||
if (dvd_demux->subpicture_stream[i]->cur_ts < threshold) {
|
||||
DEMUX_CLASS (mpeg_demux)->sync_stream_to_time (mpeg_demux,
|
||||
dvd_demux->subpicture_stream[i], new_ts);
|
||||
dvd_demux->subpicture_stream[i]->cur_ts = new_ts;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue