summaryrefslogtreecommitdiff
path: root/clutter-gst
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-08-26 17:28:10 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2011-08-26 17:28:10 +0100
commit812df2a0d3522a7151aa754c4a41cc87cd8e23b0 (patch)
tree73a4486a8f07093738bc703c55ac3bdf51852ec3 /clutter-gst
parent76952dc4d261e7afec9bfa41b3423e605806cc46 (diff)
downloadclutter-gst-812df2a0d3522a7151aa754c4a41cc87cd8e23b0.tar.gz
player: -1 is a acceptable value for the subtitles track (No subtitles)
Diffstat (limited to 'clutter-gst')
-rw-r--r--clutter-gst/clutter-gst-player.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter-gst/clutter-gst-player.c b/clutter-gst/clutter-gst-player.c
index 518f665..ccb2b0d 100644
--- a/clutter-gst/clutter-gst-player.c
+++ b/clutter-gst/clutter-gst-player.c
@@ -2217,7 +2217,7 @@ clutter_gst_player_set_subtitle_track (ClutterGstPlayer *player,
priv = PLAYER_GET_PRIVATE (player);
- g_return_if_fail (index_ >= 0 &&
+ g_return_if_fail (index_ >= -1 &&
index_ < g_list_length (priv->subtitle_tracks));
CLUTTER_GST_NOTE (SUBTITLES, "set subtitle track to #%d", index_);