summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/gst-play.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/gst-play.c b/tools/gst-play.c
index fcca5b7de..70c9c6bc5 100644
--- a/tools/gst-play.c
+++ b/tools/gst-play.c
@@ -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);
}