media: use g_object_ref/unref for GObjects

This commit is contained in:
Wim Taymans 2012-11-30 10:05:48 +01:00
parent ba5b78ff2f
commit edf2ef4f0b

View file

@ -1267,7 +1267,7 @@ static void
watch_destroyed (GstRTSPMedia * media) watch_destroyed (GstRTSPMedia * media)
{ {
GST_DEBUG_OBJECT (media, "source destroyed"); GST_DEBUG_OBJECT (media, "source destroyed");
gst_object_unref (media); g_object_unref (media);
} }
/* called from streaming threads */ /* called from streaming threads */
@ -1377,7 +1377,7 @@ gst_rtsp_media_prepare (GstRTSPMedia * media)
gst_object_unref (bus); gst_object_unref (bus);
g_source_set_callback (priv->source, (GSourceFunc) bus_message, g_source_set_callback (priv->source, (GSourceFunc) bus_message,
gst_object_ref (media), (GDestroyNotify) watch_destroyed); g_object_ref (media), (GDestroyNotify) watch_destroyed);
klass = GST_RTSP_MEDIA_GET_CLASS (media); klass = GST_RTSP_MEDIA_GET_CLASS (media);
priv->id = g_source_attach (priv->source, klass->context); priv->id = g_source_attach (priv->source, klass->context);