We always have a main list.
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,
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)
{
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);