rtsp-client: don't use g_object_unref on GstRTSPSessionMedia
authorDavid Svensson Fors <davidsf@axis.com>
Tue, 12 Jun 2012 11:39:35 +0000 (13:39 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 14 Jun 2012 08:14:06 +0000 (10:14 +0200)
GstRTSPSessionMedia is not a GObject type. When the
GstRTSPSession is freed, it will free the media.

gst/rtsp-server/rtsp-client.c

index e35efee..a70d388 100644 (file)
@@ -1019,7 +1019,6 @@ not_found:
 no_stream:
   {
     send_generic_response (client, GST_RTSP_STS_NOT_FOUND, state);
-    g_object_unref (media);
     g_object_unref (session);
     return FALSE;
   }