From b946de72117d423735986407fc2f3c9534bd9939 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 26 Apr 2013 10:38:36 +0200 Subject: [PATCH] h264parse: Update src pad caps when it was explicitly signaled 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 42bff728c0..6da80f2a38 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -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;