tsmux: remove unnecessary check
remove an if (best) check where best != NULL has already been checked
This commit is contained in:
parent
02bc614163
commit
fa6d174455
@ -687,15 +687,13 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (G_UNLIKELY (prog->pcr_stream == NULL)) {
|
if (G_UNLIKELY (prog->pcr_stream == NULL)) {
|
||||||
if (best) {
|
/* Take the first data stream for the PCR */
|
||||||
/* Take the first data stream for the PCR */
|
GST_DEBUG_OBJECT (COLLECT_DATA_PAD (best),
|
||||||
GST_DEBUG_OBJECT (COLLECT_DATA_PAD (best),
|
"Use stream (pid=%d) from pad as PCR for program (prog_id = %d)",
|
||||||
"Use stream (pid=%d) from pad as PCR for program (prog_id = %d)",
|
MPEG_TS_PAD_DATA (best)->pid, MPEG_TS_PAD_DATA (best)->prog_id);
|
||||||
MPEG_TS_PAD_DATA (best)->pid, MPEG_TS_PAD_DATA (best)->prog_id);
|
|
||||||
|
|
||||||
/* Set the chosen PCR stream */
|
/* Set the chosen PCR stream */
|
||||||
tsmux_program_set_pcr_stream (prog, best->stream);
|
tsmux_program_set_pcr_stream (prog, best->stream);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR);
|
g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user