gst-play: Prevent disabling all streams

This would have bad effects :)
This commit is contained in:
Edward Hervey 2017-10-27 09:51:29 +02:00 committed by Edward Hervey
parent a8e05cc9cc
commit 3de5fd4342

View file

@ -1259,8 +1259,11 @@ play_cycle_track_selection (GstPlay * play, GstPlayTrackType track_type)
g_mutex_unlock (&play->selection_lock);
if (play->is_playbin3) {
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);
}