hls: Minor cleanup in GstUriDownloader
This commit is contained in:
parent
71b9f57b63
commit
2415f9080d
@ -37,7 +37,6 @@ struct _GstUriDownloaderPrivate
|
|||||||
GstElement *urisrc;
|
GstElement *urisrc;
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
GstTask *task;
|
|
||||||
GTimeVal *timeout;
|
GTimeVal *timeout;
|
||||||
GstFragment *download;
|
GstFragment *download;
|
||||||
GMutex *lock;
|
GMutex *lock;
|
||||||
@ -126,11 +125,6 @@ gst_uri_downloader_dispose (GObject * object)
|
|||||||
downloader->priv->download = NULL;
|
downloader->priv->download = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (downloader->priv->task) {
|
|
||||||
g_object_unref (downloader->priv->task);
|
|
||||||
downloader->priv->download = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (gst_uri_downloader_parent_class)->dispose (object);
|
G_OBJECT_CLASS (gst_uri_downloader_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,6 +162,7 @@ gst_uri_downloader_sink_event (GstPad * pad, GstEvent * event)
|
|||||||
GST_OBJECT_UNLOCK (downloader);
|
GST_OBJECT_UNLOCK (downloader);
|
||||||
GST_DEBUG_OBJECT (downloader, "Signaling chain funtion");
|
GST_DEBUG_OBJECT (downloader, "Signaling chain funtion");
|
||||||
g_cond_signal (downloader->priv->cond);
|
g_cond_signal (downloader->priv->cond);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
GST_OBJECT_UNLOCK (downloader);
|
GST_OBJECT_UNLOCK (downloader);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user