Commit f501bab9 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: image: check es

parent c37fa71b
......@@ -222,7 +222,10 @@ static int Demux(demux_t *demux)
data->i_dts =
data->i_pts = VLC_TS_0 + pts;
es_out_SetPCR(demux->out, data->i_pts);
es_out_Send(demux->out, sys->es, data);
if(sys->es)
es_out_Send(demux->out, sys->es, data);
else
block_Release(data);
date_Increment(&sys->pts, 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment