mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
hls: m3u8: remove pointless client_has_main() function
We always have a main list.
This commit is contained in:
parent
0ed4620033
commit
97ea56e91c
3 changed files with 1 additions and 20 deletions
|
@ -800,8 +800,7 @@ retry:
|
|||
g_free (main_uri);
|
||||
if (download == NULL) {
|
||||
if (update && !main_checked
|
||||
&& gst_m3u8_client_has_variant_playlist (demux->client)
|
||||
&& gst_m3u8_client_has_main (demux->client)) {
|
||||
&& gst_m3u8_client_has_variant_playlist (demux->client)) {
|
||||
GError *err2 = NULL;
|
||||
main_uri = gst_m3u8_client_get_uri (demux->client);
|
||||
GST_INFO_OBJECT (demux,
|
||||
|
|
|
@ -1228,22 +1228,6 @@ gst_m3u8_client_get_current_uri (GstM3U8Client * client)
|
|||
return uri;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_m3u8_client_has_main (GstM3U8Client * client)
|
||||
{
|
||||
gboolean ret;
|
||||
|
||||
g_return_val_if_fail (client != NULL, FALSE);
|
||||
|
||||
GST_M3U8_CLIENT_LOCK (client);
|
||||
if (client->main)
|
||||
ret = TRUE;
|
||||
else
|
||||
ret = FALSE;
|
||||
GST_M3U8_CLIENT_UNLOCK (client);
|
||||
return ret;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_m3u8_client_has_variant_playlist (GstM3U8Client * client)
|
||||
{
|
||||
|
|
|
@ -140,8 +140,6 @@ gchar * gst_m3u8_client_get_uri (GstM3U8Client * client);
|
|||
|
||||
gchar * gst_m3u8_client_get_current_uri (GstM3U8Client * client);
|
||||
|
||||
gboolean gst_m3u8_client_has_main (GstM3U8Client * client);
|
||||
|
||||
gboolean gst_m3u8_client_has_variant_playlist (GstM3U8Client * client);
|
||||
|
||||
gboolean gst_m3u8_client_is_live (GstM3U8Client * client);
|
||||
|
|
Loading…
Reference in a new issue