diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-10-22 19:28:48 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-10-22 19:28:48 +0200 |
commit | 1363a244a076a3fe0e99427bf84b2f3031837e60 (patch) | |
tree | 802abc97271f26d753c168c8086d062310632490 /gst/inter | |
parent | 04dbd095a16a137fdeea058d2fecff02ecad35ee (diff) | |
download | gstreamer-plugins-bad-1363a244a076a3fe0e99427bf84b2f3031837e60.tar.gz |
inter: Truncate the caps as part of the fixating
Diffstat (limited to 'gst/inter')
-rw-r--r-- | gst/inter/gstinteraudiosrc.c | 1 | ||||
-rw-r--r-- | gst/inter/gstintervideosrc.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gst/inter/gstinteraudiosrc.c b/gst/inter/gstinteraudiosrc.c index 456d90772..b3417a737 100644 --- a/gst/inter/gstinteraudiosrc.c +++ b/gst/inter/gstinteraudiosrc.c @@ -433,6 +433,7 @@ gst_inter_audio_src_fixate (GstBaseSrc * src, GstCaps * caps) GST_DEBUG_OBJECT (src, "fixate"); caps = gst_caps_make_writable (caps); + caps = gst_caps_truncate (caps); structure = gst_caps_get_structure (caps, 0); diff --git a/gst/inter/gstintervideosrc.c b/gst/inter/gstintervideosrc.c index 4abde9218..d424d0344 100644 --- a/gst/inter/gstintervideosrc.c +++ b/gst/inter/gstintervideosrc.c @@ -371,7 +371,7 @@ gst_inter_video_src_fixate (GstBaseSrc * src, GstCaps * caps) GST_DEBUG_OBJECT (src, "fixate"); caps = gst_caps_make_writable (caps); - + caps = gst_caps_truncate (caps); structure = gst_caps_get_structure (caps, 0); gst_structure_fixate_field_string (structure, "format", "I420"); |