From 1ea442a021d257793309fd1aa4cab23d7293451e Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Mon, 30 Mar 2015 18:41:11 +0200 Subject: [PATCH] track: Set any caps features on tmpcaps. Summary: Before checking if we have a specific constructor for a track type. Reviewers: thiblahute Differential Revision: http://phabricator.freedesktop.org/D63 --- ges/ges-track.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ges/ges-track.c b/ges/ges-track.c index c8b86d5fc6..c943dde342 100644 --- a/ges/ges-track.c +++ b/ges/ges-track.c @@ -666,6 +666,7 @@ ges_track_new (GESTrackType type, GstCaps * caps) /* TODO Be smarter with well known track types */ if (type == GES_TRACK_TYPE_VIDEO) { tmpcaps = gst_caps_new_empty_simple ("video/x-raw"); + gst_caps_set_features (tmpcaps, 0, gst_caps_features_new_any ()); if (gst_caps_is_subset (caps, tmpcaps)) { track = GES_TRACK (ges_video_track_new ()); @@ -677,6 +678,7 @@ ges_track_new (GESTrackType type, GstCaps * caps) gst_caps_unref (tmpcaps); } else if (type == GES_TRACK_TYPE_AUDIO) { tmpcaps = gst_caps_new_empty_simple ("audio/x-raw"); + gst_caps_set_features (tmpcaps, 0, gst_caps_features_new_any ()); if (gst_caps_is_subset (caps, tmpcaps)) { track = GES_TRACK (ges_audio_track_new ());