mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
gst-play: Prevent disabling all streams
This would have bad effects :)
This commit is contained in:
parent
a8e05cc9cc
commit
3de5fd4342
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||||
|
if (selected_streams)
|
||||||
gst_element_send_event (play->playbin,
|
gst_element_send_event (play->playbin,
|
||||||
gst_event_new_select_streams (selected_streams));
|
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…
Reference in a new issue