hls: m3u8: remove pointless client_has_main() function

We always have a main list.
This commit is contained in:
Tim-Philipp Müller 2015-11-30 11:05:38 +00:00
parent 0ed4620033
commit 97ea56e91c
3 changed files with 1 additions and 20 deletions

View file

@ -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,

View file

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

View file

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