summaryrefslogtreecommitdiff
path: root/gst/h264parse
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2010-12-07 14:55:28 +0100
committerEdward Hervey <edward.hervey@collabora.co.uk>2010-12-08 16:30:12 +0100
commitde85aef3336c0761735642cc3b80ba6085d6c4a2 (patch)
tree7c5835b3f534e0fd2b53e4757cb881e8d32c48d1 /gst/h264parse
parent26d69e63d49d9865d8265e6ab767786f984302a3 (diff)
downloadgstreamer-plugins-bad-de85aef3336c0761735642cc3b80ba6085d6c4a2.tar.gz
h264parse: align code with comment
Diffstat (limited to 'gst/h264parse')
-rw-r--r--gst/h264parse/gsth264parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/h264parse/gsth264parse.c b/gst/h264parse/gsth264parse.c
index b44bcc0d4..9c35d3b2b 100644
--- a/gst/h264parse/gsth264parse.c
+++ b/gst/h264parse/gsth264parse.c
@@ -1368,10 +1368,8 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
/* save as new caps, caps will be set when pushing data */
/* avoid replacing caps by a mere identical copy, thereby triggering
* negotiating (which e.g. some container might not appreciate) */
- if (modified) {
+ if (modified)
gst_caps_replace (&h264parse->src_caps, src_caps);
- gst_pad_set_caps (h264parse->srcpad, h264parse->src_caps);
- }
gst_caps_unref (src_caps);
return TRUE;