diff options
Diffstat (limited to 'ext/dash/gstmpdparser.c')
-rw-r--r-- | ext/dash/gstmpdparser.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index a2d34b606..5d596425d 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3051,9 +3051,22 @@ gst_mpd_client_free (GstMpdClient * client) g_free (client->mpd_base_uri); client->mpd_base_uri = NULL; + if (client->downloader) + gst_object_unref (client->downloader); + client->downloader = NULL; + g_free (client); } +void +gst_mpd_client_set_uri_downloader (GstMpdClient * client, + GstUriDownloader * downloader) +{ + if (client->downloader) + gst_object_unref (client->downloader); + client->downloader = gst_object_ref (downloader); +} + static void gst_mpd_client_check_profiles (GstMpdClient * client) { |