- the result from the getcaps function should be sunken (gst_caps_sink) instead of...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 30 May 2003 13:36:04 +0000 (13:36 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 30 May 2003 13:36:04 +0000 (13:36 +0000)
Original commit message from CVS:
- the result from the getcaps function should be sunken (gst_caps_sink)
instead of unreffed. Not sure that's the right thing to do...

gst/elements/gsttee.c
plugins/elements/gsttee.c

index 1b2eba0f195f646a7f36a02731953832d92e158c..1db945c07c497b19f4ad7843dd9637075767694b 100644 (file)
@@ -198,7 +198,7 @@ gst_tee_getcaps (GstPad *pad, GstCaps *filter)
     peercaps = gst_pad_get_caps (peer);
     newcaps = gst_caps_intersect (caps, peercaps);
     gst_caps_unref (caps);
-    gst_caps_unref (peercaps);
+    gst_caps_sink (peercaps);
     caps = newcaps;
   }
 
index 1b2eba0f195f646a7f36a02731953832d92e158c..1db945c07c497b19f4ad7843dd9637075767694b 100644 (file)
@@ -198,7 +198,7 @@ gst_tee_getcaps (GstPad *pad, GstCaps *filter)
     peercaps = gst_pad_get_caps (peer);
     newcaps = gst_caps_intersect (caps, peercaps);
     gst_caps_unref (caps);
-    gst_caps_unref (peercaps);
+    gst_caps_sink (peercaps);
     caps = newcaps;
   }