summaryrefslogtreecommitdiff
path: root/ext/libav
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2015-02-08 05:35:19 +1100
committerJan Schmidt <jan@centricular.com>2015-02-24 01:50:11 +1100
commit904b53ab0deafdd38109e3fa29dfcb676ac2a539 (patch)
tree44f247a5373eba8bdec76289f3c8002ef7876b70 /ext/libav
parent5758e82eaf94b652bd0e7fb4638f1e24563aa544 (diff)
downloadgst-libav-904b53ab0deafdd38109e3fa29dfcb676ac2a539.tar.gz
Add drain() vfunc implementation that does the same as finish()
finish() is called at EOS, drain() is called at all other times when the decoder should be drained out. gst-libav decoder behaviour is the same in both cases, so use the same implementation See https://bugzilla.gnome.org/show_bug.cgi?id=734617
Diffstat (limited to 'ext/libav')
-rw-r--r--ext/libav/gstavviddec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c
index 219a87c..1bb8041 100644
--- a/ext/libav/gstavviddec.c
+++ b/ext/libav/gstavviddec.c
@@ -246,6 +246,7 @@ gst_ffmpegviddec_class_init (GstFFMpegVidDecClass * klass)
viddec_class->stop = gst_ffmpegviddec_stop;
viddec_class->flush = gst_ffmpegviddec_flush;
viddec_class->finish = gst_ffmpegviddec_finish;
+ viddec_class->drain = gst_ffmpegviddec_finish; /* drain and finish are the same to us */
viddec_class->decide_allocation = gst_ffmpegviddec_decide_allocation;
viddec_class->propose_allocation = gst_ffmpegviddec_propose_allocation;
}