mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 13:48:55 +00:00
avidemux: reverse playback; prevent overlap of subsequent fragments
This commit is contained in:
parent
0cfe24d132
commit
8d69663026
1 changed files with 2 additions and 2 deletions
|
@ -2370,7 +2370,7 @@ gst_avi_demux_parse_odml (GstAviDemux * avi, GstBuffer * buf)
|
||||||
static guint
|
static guint
|
||||||
gst_avi_demux_index_last (GstAviDemux * avi, GstAviStream * stream)
|
gst_avi_demux_index_last (GstAviDemux * avi, GstAviStream * stream)
|
||||||
{
|
{
|
||||||
return stream->idx_n - 1;
|
return stream->idx_n;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find a previous entry in the index with the given flags */
|
/* find a previous entry in the index with the given flags */
|
||||||
|
@ -4503,7 +4503,7 @@ gst_avi_demux_advance (GstAviDemux * avi, GstAviStream * stream,
|
||||||
new_entry = old_entry + 1;
|
new_entry = old_entry + 1;
|
||||||
|
|
||||||
/* see if we reached the end */
|
/* see if we reached the end */
|
||||||
if (new_entry > stream->stop_entry) {
|
if (new_entry >= stream->stop_entry) {
|
||||||
if (avi->segment.rate < 0.0) {
|
if (avi->segment.rate < 0.0) {
|
||||||
if (stream->step_entry == stream->start_entry) {
|
if (stream->step_entry == stream->start_entry) {
|
||||||
/* we stepped all the way to the start, eos */
|
/* we stepped all the way to the start, eos */
|
||||||
|
|
Loading…
Reference in a new issue