<div dir="ltr">Hi All<div><br></div><div>My System is </div><div><br></div><div>OSX Sierra</div><div>Decklink 10.8.3</div><div>Gstreamer 1.10</div><div>File Type: Mpeg2</div><div><br></div><div>My pipeline is as follow</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GstBus</span><span style="font-variant-ligatures:no-common-ligatures"> *bus;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GSource</span><span style="font-variant-ligatures:no-common-ligatures"> *timeout_source;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GSource</span><span style="font-variant-ligatures:no-common-ligatures"> *bus_source;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GError</span><span style="font-variant-ligatures:no-common-ligatures"> *error = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,132,0)"><span style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(209,47,27)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">GST_DEBUG</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures">"Creating pipeline"</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">context</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> = </span><span style="font-variant-ligatures:no-common-ligatures">g_main_context_new</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">();</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">g_main_context_push_thread_default</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">context</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures"> = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">gst_parse_launch</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"playbin"</span><span style="font-variant-ligatures:no-common-ligatures">, &error);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">const</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">char</span><span style="font-variant-ligatures:no-common-ligatures"> *char_uri = [uri </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">UTF8String</span><span style="font-variant-ligatures:no-common-ligatures">];</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_object_set</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures">, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"uri"</span><span style="font-variant-ligatures:no-common-ligatures">, char_uri, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">GST_DEBUG</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"URI set to %s"</span><span style="font-variant-ligatures:no-common-ligatures">, char_uri);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span> </p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">if</span><span style="font-variant-ligatures:no-common-ligatures">(error){</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">gchar</span><span style="font-variant-ligatures:no-common-ligatures"> *message = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_strdup_printf</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"Unable to build pipeline: %s"</span><span style="font-variant-ligatures:no-common-ligatures">, error-></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">message</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_clear_error</span><span style="font-variant-ligatures:no-common-ligatures">(&error);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">NSLog</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">@"pipeline error %s"</span><span style="font-variant-ligatures:no-common-ligatures">,message);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> [</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">setUIMessage</span><span style="font-variant-ligatures:no-common-ligatures">:message];</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_free</span><span style="font-variant-ligatures:no-common-ligatures">(message);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">return</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> }</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GstElement</span><span style="font-variant-ligatures:no-common-ligatures"> *videosink = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">gst_bin_get_by_interface</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">GST_BIN</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures">), </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">GST_TYPE_VIDEO_OVERLAY</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">if</span><span style="font-variant-ligatures:no-common-ligatures">(!videosink){</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(209,47,27)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">GST_ERROR</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures">"Could not retrieve video sink"</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">return</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> }</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">gst_video_overlay_set_window_handle</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">GST_VIDEO_OVERLAY</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(videosink), (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">guintptr</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">)(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">id</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">ui_video_view</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">ret</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> = </span><span style="font-variant-ligatures:no-common-ligatures">gst_element_set_state</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">, </span><span style="font-variant-ligatures:no-common-ligatures">GST_STATE_PLAYING</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">if</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">ret</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> == </span><span style="font-variant-ligatures:no-common-ligatures">GST_STATE_CHANGE_FAILURE</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">) {</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(209,47,27)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">NSLog</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures">@"Unable to set the pipeline to the playing state.\n"</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">gst_object_unref</span><span style="font-variant-ligatures:no-common-ligatures"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">return</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> }</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> bus = </span><span style="font-variant-ligatures:no-common-ligatures">gst_element_get_bus</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> bus_source = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">gst_bus_create_watch</span><span style="font-variant-ligatures:no-common-ligatures">(bus);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">g_source_set_callback</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(bus_source, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GSourceFunc</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">)</span><span style="font-variant-ligatures:no-common-ligatures">gst_bus_async_signal_func</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_source_attach</span><span style="font-variant-ligatures:no-common-ligatures">(bus_source, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">context</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_source_unref</span><span style="font-variant-ligatures:no-common-ligatures">(bus_source);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">g_signal_connect</span><span style="font-variant-ligatures:no-common-ligatures"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">G_OBJECT</span><span style="font-variant-ligatures:no-common-ligatures">(bus), </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"message::error"</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GCallback</span><span style="font-variant-ligatures:no-common-ligatures">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">error_cb</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">__bridge</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">void</span><span style="font-variant-ligatures:no-common-ligatures"> *)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">g_signal_connect</span><span style="font-variant-ligatures:no-common-ligatures"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">G_OBJECT</span><span style="font-variant-ligatures:no-common-ligatures">(bus), </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"message::eos"</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GCallback</span><span style="font-variant-ligatures:no-common-ligatures">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">eos_cb</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">__bridge</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">void</span><span style="font-variant-ligatures:no-common-ligatures"> *)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">g_signal_connect</span><span style="font-variant-ligatures:no-common-ligatures"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">G_OBJECT</span><span style="font-variant-ligatures:no-common-ligatures">(bus), </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"message::state-changed"</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GCallback</span><span style="font-variant-ligatures:no-common-ligatures">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">state_changed_cb</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">__bridge</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">void</span><span style="font-variant-ligatures:no-common-ligatures"> *)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">g_signal_connect</span><span style="font-variant-ligatures:no-common-ligatures"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">G_OBJECT</span><span style="font-variant-ligatures:no-common-ligatures">(bus), </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"message::duration"</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GCallback</span><span style="font-variant-ligatures:no-common-ligatures">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">duration_cb</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">__bridge</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">void</span><span style="font-variant-ligatures:no-common-ligatures"> *)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">g_signal_connect</span><span style="font-variant-ligatures:no-common-ligatures"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">G_OBJECT</span><span style="font-variant-ligatures:no-common-ligatures">(bus), </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"message::clock-lost"</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GCallback</span><span style="font-variant-ligatures:no-common-ligatures">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">clock_lost_cb</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">__bridge</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">void</span><span style="font-variant-ligatures:no-common-ligatures"> *)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">g_signal_connect</span><span style="font-variant-ligatures:no-common-ligatures"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures">, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">"about-to-finish"</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GCallback</span><span style="font-variant-ligatures:no-common-ligatures">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">prepare_next_stream</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">__bridge</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">void</span><span style="font-variant-ligatures:no-common-ligatures"> *)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> timeout_source = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_timeout_source_new</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(39,42,216)">1</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_source_set_callback</span><span style="font-variant-ligatures:no-common-ligatures">(timeout_source, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(112,61,170)">GSourceFunc</span><span style="font-variant-ligatures:no-common-ligatures">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">refresh_ui</span><span style="font-variant-ligatures:no-common-ligatures">, (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">__bridge</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">void</span><span style="font-variant-ligatures:no-common-ligatures"> *)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures">,</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_source_attach</span><span style="font-variant-ligatures:no-common-ligatures">(timeout_source, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">context</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_source_unref</span><span style="font-variant-ligatures:no-common-ligatures">(timeout_source);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(209,47,27)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">GST_DEBUG</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures">"Entering main loop..."</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">main_loop</span><span style="font-variant-ligatures:no-common-ligatures"> = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(62,30,129)">g_main_loop_new</span><span style="font-variant-ligatures:no-common-ligatures">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">context</span><span style="font-variant-ligatures:no-common-ligatures">, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">FALSE</span><span style="font-variant-ligatures:no-common-ligatures">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(49,89,93)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> [</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">self</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">check_initializing_complete</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">];</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">g_main_loop_run</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">main_loop</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(209,47,27)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(120,73,42)">GST_DEBUG</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures">"Exiting main loop..."</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">g_main_loop_unref</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">main_loop</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">main_loop</span><span style="font-variant-ligatures:no-common-ligatures"> = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">g_main_context_pop_thread_default</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">context</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">g_main_context_unref</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">context</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">gst_object_unref</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> (bus);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">gst_element_set_state</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">, </span><span style="font-variant-ligatures:no-common-ligatures">GST_STATE_NULL</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(62,30,129)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">gst_object_unref</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">);</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"> </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(79,129,135)">pipeline</span><span style="font-variant-ligatures:no-common-ligatures"> = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> timeout_source = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> bus = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> bus_source = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">NULL</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">return</span><span style="font-variant-ligatures:no-common-ligatures">;</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">I am playing files sequentially using about to finish but first file play normally but next file freezes for some time and then play normally then next 2 or 3 files play fine but then next file freezes for sometime. How can I debug that issue</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Regards</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Adeel Arshad</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></div>