mpegvideoparse: reset frame parser after parsing codec_data buffer in caps, to
authorMichael Smith <msmith@rdio.com>
Wed, 10 Oct 2012 04:19:15 +0000 (21:19 -0700)
committerMichael Smith <msmith@rdio.com>
Wed, 10 Oct 2012 04:19:15 +0000 (21:19 -0700)
avoid not correctly parsing the full first frame.

common
gst/videoparsers/gstmpegvideoparse.c

diff --git a/common b/common
index 6bb6951..4f962f7 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 6bb695159bf15fe64d31b26dd2a07d1ba2bb7f1d
+Subproject commit 4f962f78357a11e545510d48227f41af24bfaab7
index f455f8f..0bcf057 100644 (file)
@@ -834,6 +834,7 @@ gst_mpegv_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
      * src caps are based on sink caps so it will end up in there
      * whether sucessful or not */
     gst_mpegv_parse_process_config (mpvparse, buf, gst_buffer_get_size (buf));
+    gst_mpegv_parse_reset_frame (mpvparse);
   }
 
   /* let's not interfere and accept regardless of config parsing success */