tsmux: remove unnecessary check

remove an if (best) check where best != NULL has already been checked
This commit is contained in:
Alessandro Decina 2011-08-20 00:48:20 +02:00
parent 02bc614163
commit fa6d174455

View file

@ -687,7 +687,6 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
}
if (G_UNLIKELY (prog->pcr_stream == NULL)) {
if (best) {
/* Take the first data stream for the PCR */
GST_DEBUG_OBJECT (COLLECT_DATA_PAD (best),
"Use stream (pid=%d) from pad as PCR for program (prog_id = %d)",
@ -696,7 +695,6 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
/* Set the chosen PCR stream */
tsmux_program_set_pcr_stream (prog, best->stream);
}
}
g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR);
if (best->stream->is_video_stream)