player: Remove boolean return from set_subtitle_uri()

It can't fail synchronously and is inconsistent with set_uri().
This commit is contained in:
Sebastian Dröge 2016-09-15 13:15:22 +02:00
parent a036b7ef9f
commit 79cab9f8b8
2 changed files with 3 additions and 5 deletions

View file

@ -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;
}
/**

View file

@ -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);