projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e630a05
)
Added some sort of flush operation in mpeg2dec
author
Wim Taymans
<wim.taymans@gmail.com>
Sat, 2 Nov 2002 13:36:39 +0000
(13:36 +0000)
committer
Wim Taymans
<wim.taymans@gmail.com>
Sat, 2 Nov 2002 13:36:39 +0000
(13:36 +0000)
Original commit message from CVS:
Added some sort of flush operation in mpeg2dec
ext/mpeg2dec/gstmpeg2deccvs.c
patch
|
blob
|
history
diff --git
a/ext/mpeg2dec/gstmpeg2deccvs.c
b/ext/mpeg2dec/gstmpeg2deccvs.c
index fac7dcee4dc669b50f47bd9cc2f210850dbdf6da..3551c5db7a3fbc0cdb0996509a4cddb4e738a221 100644
(file)
--- a/
ext/mpeg2dec/gstmpeg2deccvs.c
+++ b/
ext/mpeg2dec/gstmpeg2deccvs.c
@@
-710,7
+710,12
@@
gst_mpeg2dec_src_event (GstPad *pad, GstEvent *event)
}
peer_formats++;
}
- /* at this point, either the seek worked or res == FALSE */
+ /* at this point, either the seek worked and res = TRUE or res == FALSE and the seek
+ * failed */
+ if (res && flush) {
+ /* if we need to flush, iterate until the buffer is empty */
+ while (mpeg2_parse (mpeg2dec->decoder) != -1);
+ }
break;
}
default: