From fb0d8700e71c4a6569ba023d16201087aec119fd Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 26 Apr 2013 10:38:36 +0200 Subject: 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 2dcf2cfd7..d398dbb9a 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -180,7 +180,8 @@ gst_h264_parse_reset_frame (GstH264Parse * h264parse) h264parse->current_off = -1; h264parse->picture_start = FALSE; - h264parse->update_caps = FALSE; + if (!h264parse->push_codec) + h264parse->update_caps = FALSE; h264parse->idr_pos = -1; h264parse->sei_pos = -1; h264parse->keyframe = FALSE; @@ -1105,7 +1106,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; -- cgit v1.2.1