h264parse: Do not trigger caps update if we only have PPS updates
authorEdward Hervey <edward@collabora.com>
Sat, 3 Aug 2013 12:20:47 +0000 (14:20 +0200)
committerEdward Hervey <edward@collabora.com>
Sun, 4 Aug 2013 10:08:57 +0000 (12:08 +0200)
commitb17676a1d5f1f9179eef32b92b22ecfbce902112
tree638dd6598b6afe2928137d893b88b8eeebe03074
parent5b63a7c8e090123117c03acdffaa3bdcb9ed50c7
h264parse: Do not trigger caps update if we only have PPS updates

Updating caps results in downstream elements potentially reconfiguring themselves
(such as decoders). If we do this in the middle of keyframes, we would result
in those elements being reconfigured and handling garbage until the next keyframe.

Instead of this only send (potentially) new codec_data when we have *both* SPS and
PPS.

https://bugzilla.gnome.org/show_bug.cgi?id=705333
gst/videoparsers/gsth264parse.c