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
This commit is contained in:
Josep Torra 2013-04-26 10:38:36 +02:00
parent d8b8809d57
commit b946de7211

View 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;