Commit 3de5fd43 authored by Edward Hervey's avatar Edward Hervey Committed by Edward Hervey

gst-play: Prevent disabling all streams

This would have bad effects :)
parent a8e05cc9
......@@ -1259,8 +1259,11 @@ play_cycle_track_selection (GstPlay * play, GstPlayTrackType track_type)
g_mutex_unlock (&play->selection_lock);
if (play->is_playbin3) {
gst_element_send_event (play->playbin,
gst_event_new_select_streams (selected_streams));
if (selected_streams)
gst_element_send_event (play->playbin,
gst_event_new_select_streams (selected_streams));
else
g_print ("Can't disable all streams !\n");
} else {
g_object_set (play->playbin, prop_cur, cur, NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment