diff options
author | Brijesh Singh <brijesh.ksingh@gmail.com> | 2010-01-13 09:39:54 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-01-13 09:39:54 +0100 |
commit | 0fe6b6e8abb131471d5bd04d7f7e27ca98a67659 (patch) | |
tree | ee9d9b77b1cb96c9d147166c7a7e9291efe85c81 | |
parent | 7d2c90423ae8682639549073de6f260608188a16 (diff) |
playsink: Fix handling of the native audio/video flags
Fixes bug #606687.
-rw-r--r-- | gst/playback/gstplaysink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index e5755f73b..0887f7a79 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -1732,12 +1732,13 @@ gst_play_sink_reconfigure (GstPlaySink * playsink) * video in this case. */ need_video = TRUE; need_text = TRUE; - } else if (flags & GST_PLAY_FLAG_VIDEO && playsink->video_pad) { + } else if (((flags & GST_PLAY_FLAG_VIDEO) + || (flags & GST_PLAY_FLAG_NATIVE_VIDEO)) && playsink->video_pad) { /* we have video and we are requested to show it */ need_video = TRUE; } if (playsink->audio_pad) { - if (flags & GST_PLAY_FLAG_AUDIO) { + if ((flags & GST_PLAY_FLAG_AUDIO) || (flags & GST_PLAY_FLAG_NATIVE_AUDIO)) { need_audio = TRUE; } if (playsink->audio_pad_raw) { |