h264parse: Update src pad caps when it was explicitly signaled
authorJosep Torra <n770galaxy@gmail.com>
Fri, 26 Apr 2013 08:38:36 +0000 (10:38 +0200)
committerJosep Torra <n770galaxy@gmail.com>
Fri, 26 Apr 2013 08:38:36 +0000 (10:38 +0200)
Fixes src pad caps aren't updated when converting from AVC to bytestream
and new caps had been received in the sink pad.

https://bugzilla.gnome.org/show_bug.cgi?id=698679

gst/videoparsers/gsth264parse.c

index 42bff728c0500850e69928b0d2a84c4837dac572..6da80f2a38e421080873b68a79a886f8cdfa6a8e 100644 (file)
@@ -1194,7 +1194,7 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
       }
     }
 
-    if (G_UNLIKELY (modified)) {
+    if (G_UNLIKELY (modified || h264parse->update_caps)) {
       gint fps_num = h264parse->fps_num;
       gint fps_den = h264parse->fps_den;
       gint width, height;