<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=SV link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>New on this list, hope that this question fits here. I am working to implement a SCReAM (<a href="https://tools.ietf.org/html/rfc8298">https://tools.ietf.org/html/rfc8298</a> ) plugin for GStreamer. The end goal is to enable congestion control especially for video. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Currently I try to make applications for the sender and receiver side. I have a problem with the code further down below. The error occurs at the line<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'>“<span style='mso-fareast-language:SV'>lres = gst_pad_link (srcpad, sinkpad);</span>”<o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'>I have tried to double check agaist other examples and I don’t find anything wrong but obviously there must be something ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV'>Regards<br>Ingemar<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV'>=========<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> (gscream_app_rx:24376): GLib-GObject-CRITICAL **: 18:40:46.833: g_object_unref: assertion 'G_IS_OBJECT (object)' failed<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'>**<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'>ERROR:gscream_app_rx.cpp:166:int main(int, char**): assertion failed: (lres == GST_PAD_LINK_OK)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'>Aborted (core dumped)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'>=========<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'>int main (int argc, char *argv[])<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'>{<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> std::printf("going for video from IP: %s\n on port 5000", argv[1]);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> GMainLoop *loop;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> GstElement *rtpbin, *pipeline, *capsfilter, *rtpsrc, *rtcpsrc, *rtcpsink, *rtpdepay,<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> *decodebin, *videoconvert, *autovideosink;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> GstBus *bus;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> guint bus_watch_id;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> GstCaps *udpcaps;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> </span><span style='mso-fareast-language:SV'>GstPadLinkReturn lres;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='mso-fareast-language:SV'> GstPad *srcpad, *sinkpad;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='mso-fareast-language:SV'> </span><span lang=EN-US style='mso-fareast-language:SV'>/* Initialisation */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_init (&argc, &argv);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> loop = g_main_loop_new (NULL, FALSE);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* Create gstreamer elements */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> pipeline = gst_pipeline_new ("video-pipeline");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> rtpsrc = gst_element_factory_make("udpsrc", "rtpsrc");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> udpcaps = gst_caps_new_simple ("application/x-rtp",<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> "media", G_TYPE_STRING,"video",<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> "clock-rate", G_TYPE_INT, 90000,<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> "encoding-name",G_TYPE_STRING,"H264",<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> NULL);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_object_set(G_OBJECT(rtpsrc), "port", 5000, "caps", udpcaps, NULL);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_object_unref(udpcaps);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> rtcpsrc = gst_element_factory_make("udpsrc", "rtcpsrc");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_object_set(G_OBJECT(rtcpsrc), "port", 5001, NULL);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_assert (rtcpsrc);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> rtcpsink = gst_element_factory_make("udpsink", "rtcpsink");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_object_set (rtcpsink, "port", 5003, "host", argv[1], NULL);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* no need for synchronisation or preroll on the RTCP sink */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_object_set (rtcpsink, "async", FALSE, "sync", FALSE, NULL);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_assert (rtcpsink);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> rtpdepay = gst_element_factory_make("rtph264depay", "rtph264depay");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> decodebin = gst_element_factory_make ("avdec_h264", "avdec_h264");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> videoconvert = gst_element_factory_make ("videoconvert", "videoconvert");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> autovideosink = gst_element_factory_make ("autovideosink", "videosink");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> if (!pipeline || !rtpdepay || !decodebin || !videoconvert || !autovideosink) {<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_printerr ("One element could not be created. Exiting.\n");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> return -1;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> }<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* Set up the pipeline */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* we add a message handler */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> bus_watch_id = gst_bus_add_watch (bus, bus_call, loop);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_object_unref (bus);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* we add all elements into the pipeline */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_bin_add_many (GST_BIN (pipeline),<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> rtpsrc, rtpdepay, decodebin, videoconvert, autovideosink, NULL);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* we link the elements together */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* videotestsrcm -> autovideosink */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> if(!gst_element_link_many (rtpsrc, rtpdepay, decodebin, videoconvert, autovideosink, NULL)){<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_error("Could not link on ore more of elements udpsrc, rtpdepay decodebin");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> return -1;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> }<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* the rtpbin element */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> rtpbin = gst_element_factory_make ("rtpbin", "rtpbin");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_assert (rtpbin);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_bin_add(GST_BIN (pipeline), rtpbin);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* now link all to the rtpbin, start by getting an RTP sinkpad for session 0 */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> srcpad = gst_element_get_static_pad (rtpsrc, "src");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> sinkpad = gst_element_get_request_pad (rtpbin, "recv_rtp_sink_0");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> </span><span style='mso-fareast-language:SV'>lres = gst_pad_link (srcpad, sinkpad);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='mso-fareast-language:SV'> </span><span lang=EN-US style='mso-fareast-language:SV'>g_assert (lres == GST_PAD_LINK_OK);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_object_unref (srcpad);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* get an RTCP sinkpad in session 0 */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> srcpad = gst_element_get_static_pad (rtcpsrc, "src");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> sinkpad = gst_element_get_request_pad (rtpbin, "recv_rtcp_sink_0");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> </span><span style='mso-fareast-language:SV'>lres = gst_pad_link (srcpad, sinkpad);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='mso-fareast-language:SV'> </span><span lang=EN-US style='mso-fareast-language:SV'>g_assert (lres == GST_PAD_LINK_OK);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_object_unref (srcpad);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_object_unref (sinkpad);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* get an RTCP srcpad for sending RTCP back to the sender */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> srcpad = gst_element_get_request_pad (rtpbin, "send_rtcp_src_0");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> sinkpad = gst_element_get_static_pad (rtcpsink, "sink");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> </span><span style='mso-fareast-language:SV'>lres = gst_pad_link (srcpad, sinkpad);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='mso-fareast-language:SV'> </span><span lang=EN-US style='mso-fareast-language:SV'>g_assert (lres == GST_PAD_LINK_OK);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_object_unref (sinkpad);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* the RTP pad that we have to connect to the depayloader will be created<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> * dynamically so we connect to the pad-added signal, pass the depayloader as<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> * user_data so that we can link to it. */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_signal_connect (rtpbin, "pad-added", G_CALLBACK (pad_added_cb), rtpdepay);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* give some stats when we receive RTCP */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_signal_connect (rtpbin, "on-ssrc-active", G_CALLBACK (on_ssrc_active_cb),<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> rtpdepay);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> //GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "recv-pipeline-bf-playing");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* Set the pipeline to "playing" state*/<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_print ("Now set pipeline in state playing\n");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_element_set_state (pipeline, GST_STATE_PLAYING);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "recv-pipeline-af-playing-bf-running");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* Iterate */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_print ("Running...\n");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_main_loop_run (loop);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "recv-pipeline-af-running");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> /* Out of the main loop, clean up nicely */<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_print ("Returned, stopping playback\n");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_element_set_state (pipeline, GST_STATE_NULL);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "recv-pipeline-af-stop");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_print ("Deleting pipeline\n");<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> gst_object_unref (GST_OBJECT (pipeline));<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_source_remove (bus_watch_id);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> g_main_loop_unref (loop);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'> return 0;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='mso-fareast-language:SV'>}</span><o:p></o:p></p></div></body></html>