mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
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
This commit is contained in:
parent
0d3a3eb9d2
commit
1ea442a021
1 changed files with 2 additions and 0 deletions
|
@ -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 ());
|
||||
|
|
Loading…
Reference in a new issue