mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
asf: don't push on inactive streams
This commit is contained in:
parent
b8beab38eb
commit
fb8a3d2174
1 changed files with 6 additions and 2 deletions
|
@ -1516,8 +1516,12 @@ gst_asf_demux_push_complete_payloads (GstASFDemux * demux, gboolean force)
|
|||
GST_TIME_ARGS (GST_BUFFER_DURATION (payload->buf)),
|
||||
gst_buffer_get_size (payload->buf));
|
||||
|
||||
ret = gst_pad_push (stream->pad, payload->buf);
|
||||
ret = gst_asf_demux_aggregate_flow_return (demux, stream, ret);
|
||||
if (stream->active) {
|
||||
ret = gst_pad_push (stream->pad, payload->buf);
|
||||
ret = gst_asf_demux_aggregate_flow_return (demux, stream, ret);
|
||||
} else {
|
||||
ret = GST_FLOW_OK;
|
||||
}
|
||||
payload->buf = NULL;
|
||||
g_array_remove_index (stream->payloads, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue