summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-09-15 13:15:22 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-09-15 13:15:51 +0200
commit79cab9f8b8fdcd417d7fea970c79fbf5b3090f7d (patch)
tree96dae9b23d7f7a1b7cc38f6bbe548e83abdc7a23 /gst-libs
parenta036b7ef9ffe9fe5dac4a7e46fbc3bac92921a54 (diff)
downloadgstreamer-plugins-bad-79cab9f8b8fdcd417d7fea970c79fbf5b3090f7d.tar.gz
player: Remove boolean return from set_subtitle_uri()
It can't fail synchronously and is inconsistent with set_uri().
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/player/gstplayer.c6
-rw-r--r--gst-libs/gst/player/gstplayer.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/gst-libs/gst/player/gstplayer.c b/gst-libs/gst/player/gstplayer.c
index 731fcd27a..5b2e2125e 100644
--- a/gst-libs/gst/player/gstplayer.c
+++ b/gst-libs/gst/player/gstplayer.c
@@ -3187,14 +3187,12 @@ gst_player_set_uri (GstPlayer * self, const gchar * val)
*
* Sets the external subtitle URI.
*/
-gboolean
+void
gst_player_set_subtitle_uri (GstPlayer * self, const gchar * suburi)
{
- g_return_val_if_fail (GST_IS_PLAYER (self), FALSE);
+ g_return_if_fail (GST_IS_PLAYER (self));
g_object_set (self, "suburi", suburi, NULL);
-
- return TRUE;
}
/**
diff --git a/gst-libs/gst/player/gstplayer.h b/gst-libs/gst/player/gstplayer.h
index 1159d9ad3..0ac66beb1 100644
--- a/gst-libs/gst/player/gstplayer.h
+++ b/gst-libs/gst/player/gstplayer.h
@@ -115,7 +115,7 @@ void gst_player_set_uri (GstPlayer * player,
const gchar * uri);
gchar * gst_player_get_subtitle_uri (GstPlayer * player);
-gboolean gst_player_set_subtitle_uri (GstPlayer * player,
+void gst_player_set_subtitle_uri (GstPlayer * player,
const gchar *uri);
GstClockTime gst_player_get_position (GstPlayer * player);