mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
player: Remove boolean return from set_subtitle_uri()
It can't fail synchronously and is inconsistent with set_uri().
This commit is contained in:
parent
a036b7ef9f
commit
79cab9f8b8
2 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue