summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 466d005)
raw | patch | inline | side by side (parent: 466d005)
author | Stefan Kost <ensonic@users.sf.net> | |
Wed, 2 Mar 2011 11:12:11 +0000 (13:12 +0200) | ||
committer | Stefan Kost <ensonic@users.sf.net> | |
Wed, 2 Mar 2011 11:12:11 +0000 (13:12 +0200) |
Don't duplicate the 'if' check. Makes the 2nd condition easier to read also
and avoid empty 'if' when logging is disabled.
and avoid empty 'if' when logging is disabled.
gst/mpegstream/gstdvddemux.c | patch | blob | history |
index 4c53fbfa6f92ee56ff3ba4215450aecec11a90ba..afe9c1d23a8b4c784f4cbbee99047a6cf78f9650 100644 (file)
", 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;
+ }
}
}
}