mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
asfdemux: Only push EOS event if we're not doing a segment seek
https://bugzilla.gnome.org/show_bug.cgi?id=755469
This commit is contained in:
parent
42d7aec412
commit
c526153ec9
1 changed files with 8 additions and 4 deletions
|
@ -1962,9 +1962,12 @@ eos:
|
|||
return;
|
||||
}
|
||||
}
|
||||
/* normal playback, send EOS to all linked pads */
|
||||
GST_INFO_OBJECT (demux, "Sending EOS, at end of stream");
|
||||
gst_asf_demux_send_event_unlocked (demux, gst_event_new_eos ());
|
||||
|
||||
if (!(demux->segment.flags & GST_SEEK_FLAG_SEGMENT)) {
|
||||
/* normal playback, send EOS to all linked pads */
|
||||
GST_INFO_OBJECT (demux, "Sending EOS, at end of stream");
|
||||
gst_asf_demux_send_event_unlocked (demux, gst_event_new_eos ());
|
||||
}
|
||||
/* ... and fall through to pause */
|
||||
}
|
||||
pause:
|
||||
|
@ -1980,7 +1983,9 @@ pause:
|
|||
GST_ELEMENT_ERROR (demux, STREAM, FAILED,
|
||||
(_("Internal data stream error.")),
|
||||
("streaming stopped, reason %s", gst_flow_get_name (flow)));
|
||||
gst_asf_demux_send_event_unlocked (demux, gst_event_new_eos ());
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1988,7 +1993,6 @@ pause:
|
|||
read_failed:
|
||||
{
|
||||
GST_DEBUG_OBJECT (demux, "Read failed, doh");
|
||||
gst_asf_demux_send_event_unlocked (demux, gst_event_new_eos ());
|
||||
flow = GST_FLOW_EOS;
|
||||
goto pause;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue