mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-25 18:14:15 +00:00
flvdemux: remove obsolete reverse playback code path
This commit is contained in:
parent
1c7b1d110b
commit
2d6d2a4d95
1 changed files with 51 additions and 81 deletions
|
@ -772,7 +772,6 @@ gst_flv_demux_loop (GstPad * pad)
|
|||
|
||||
demux = GST_FLV_DEMUX (gst_pad_get_parent (pad));
|
||||
|
||||
if (TRUE || demux->segment.rate >= 0) {
|
||||
/* pull in data */
|
||||
switch (demux->state) {
|
||||
case FLV_STATE_TAG_TYPE:
|
||||
|
@ -827,35 +826,6 @@ gst_flv_demux_loop (GstPad * pad)
|
|||
/* pause if something went wrong or at end */
|
||||
if (G_UNLIKELY (ret != GST_FLOW_OK))
|
||||
goto pause;
|
||||
} else { /* Reverse playback */
|
||||
/* pull in data */
|
||||
switch (demux->state) {
|
||||
case FLV_STATE_TAG_TYPE:
|
||||
ret = gst_flv_demux_pull_tag (pad, demux);
|
||||
/* When packet parsing returns UNEXPECTED that means we ve reached the
|
||||
point where we want to go to the previous keyframe. This is either
|
||||
the last FLV tag or the keyframe we used last time */
|
||||
if (ret == GST_FLOW_UNEXPECTED) {
|
||||
ret = gst_flv_demux_seek_to_prev_keyframe (demux);
|
||||
demux->state = FLV_STATE_TAG_TYPE;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ret = gst_flv_demux_pull_header (pad, demux);
|
||||
if (ret == GST_FLOW_OK)
|
||||
gst_flv_demux_create_index (demux, demux->offset, G_MAXINT64);
|
||||
}
|
||||
|
||||
/* pause if something went wrong */
|
||||
if (G_UNLIKELY (ret != GST_FLOW_OK))
|
||||
goto pause;
|
||||
|
||||
/* check EOS condition */
|
||||
if (demux->segment.last_stop <= demux->segment.start) {
|
||||
ret = GST_FLOW_UNEXPECTED;
|
||||
goto pause;
|
||||
}
|
||||
}
|
||||
|
||||
gst_object_unref (demux);
|
||||
|
||||
|
|
Loading…
Reference in a new issue