Displaying 1 result from an estimated 1 matches for "gst_object_unref".
Did you mean:
g_object_unref
2007 Oct 26
0
6 commits - configure.ac libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec_video.c player/swfplay.c
...+ sinkpad = gst_element_get_pad (element, "sink");
+ if (sinkpad == NULL)
+ return NULL;
+ srcpad = gst_pad_new ("src", GST_PAD_SRC);
+ if (!gst_pad_set_caps (srcpad, caps))
+ goto error;
+ if (gst_pad_link (srcpad, sinkpad) != GST_PAD_LINK_OK)
+ goto error;
+
+ gst_object_unref (sinkpad);
+ gst_pad_set_active (srcpad, TRUE);
+ return srcpad;
+
+error:
+ SWFDEC_ERROR ("failed to create or link srcpad");
+ gst_object_unref (sinkpad);
+ gst_object_unref (srcpad);
+ return NULL;
}
-static void
-swfdec_audio_decoder_gst_fakesrc_handoff (GstElement *fakesrc,...