[0.11] gst-plugins-bad: mpeg4videoparse: Don't update caps on every buffer

Sebastian Dröge slomo at kemper.freedesktop.org
Mon Jan 9 05:39:58 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: adb4b010edf44bcfb1254f6e8cc8a0ad7f62d4d9
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=adb4b010edf44bcfb1254f6e8cc8a0ad7f62d4d9

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon Jan  9 14:39:43 2012 +0100

mpeg4videoparse: Don't update caps on every buffer

---

 gst/videoparsers/gstmpeg4videoparse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gst/videoparsers/gstmpeg4videoparse.c b/gst/videoparsers/gstmpeg4videoparse.c
index 5d8b1bd..c13eb6f 100644
--- a/gst/videoparsers/gstmpeg4videoparse.c
+++ b/gst/videoparsers/gstmpeg4videoparse.c
@@ -542,6 +542,8 @@ gst_mpeg4vparse_update_src_caps (GstMpeg4VParse * mp4vparse)
 
   gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (mp4vparse), caps);
   gst_caps_unref (caps);
+
+  mp4vparse->update_caps = FALSE;
 }
 
 static GstFlowReturn



More information about the gstreamer-commits mailing list