gst-play: Prevent disabling all streams
This would have bad effects :)
This commit is contained in:
parent
a8e05cc9cc
commit
3de5fd4342
@ -1259,8 +1259,11 @@ play_cycle_track_selection (GstPlay * play, GstPlayTrackType track_type)
|
|||||||
g_mutex_unlock (&play->selection_lock);
|
g_mutex_unlock (&play->selection_lock);
|
||||||
|
|
||||||
if (play->is_playbin3) {
|
if (play->is_playbin3) {
|
||||||
gst_element_send_event (play->playbin,
|
if (selected_streams)
|
||||||
gst_event_new_select_streams (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 {
|
} else {
|
||||||
g_object_set (play->playbin, prop_cur, cur, NULL);
|
g_object_set (play->playbin, prop_cur, cur, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user