<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=utf-8">
<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;}
@font-face
{font-family:Menlo;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">You might be getting EOS from audio stream and not video stream. Try probing audio pad and intercept EOS events and drop it until you get EOS for video stream.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> gstreamer-devel [mailto:gstreamer-devel-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>Adeel Arshad<br>
<b>Sent:</b> Wednesday, August 17, 2016 11:34 PM<br>
<b>To:</b> Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: gapless playback is not playing full video<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi all<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">I checked with only playbin element and still file is not playing till the end in gapless playback. Following is my code<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#78492A">GST_DEBUG</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B">"Creating
pipeline"</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">context</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> =
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">g_main_context_new</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">();</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">g_main_context_push_thread_default</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">context</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">pipeline</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> =
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">gst_parse_launch</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B">"playbin uri=file:///Users/administrator/Desktop/MAC_APPS/SUZUKI.mpg"</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">,
&error);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#BB2CA2">const</span> <span style="color:#BB2CA2">char</span> *char_uri = [uri
<span style="color:#3D1D81">UTF8String</span>];<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_object_set</span>(<span style="color:#4F8187">pipeline</span>,
<span style="color:#D12F1B">"uri"</span>, char_uri, <span style="color:#BB2CA2">NULL</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#78492A">GST_DEBUG</span>(<span style="color:#D12F1B">"URI set to %s"</span>, char_uri);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#BB2CA2">if</span>(error){<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#703DAA">gchar</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> *message =
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">g_strdup_printf</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B">"Unable to build
pipeline: %s"</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">, error-></span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#703DAA">message</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_clear_error</span>(&error);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">NSLog</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B">@"pipeline error %s"</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">,message);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif"> [<span style="color:#BB2CA2">self</span>
<span style="color:#31595D">setUIMessage</span>:message];<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_free</span>(message);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">return</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">;</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif"> }<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#703DAA">GstElement</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> *videosink =
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">gst_bin_get_by_interface</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#78492A">GST_BIN</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">pipeline</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">),
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#78492A">GST_TYPE_VIDEO_OVERLAY</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#78492A"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#BB2CA2">if</span>(!videosink){<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#78492A">GST_ERROR</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B">"Could not retrieve
video sink"</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#BB2CA2">return</span>;<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif"> }<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">gst_video_overlay_set_window_handle</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#78492A">GST_VIDEO_OVERLAY</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(videosink),
(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#703DAA">guintptr</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">)(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">id</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">)</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">ui_video_view</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">ret</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> =
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">gst_element_set_state</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> (</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">pipeline</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">,
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">GST_STATE_PLAYING</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">if</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> (</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">ret</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
== </span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">GST_STATE_CHANGE_FAILURE</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">) {</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">NSLog</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B">@"Unable to set the pipeline
to the playing state.\n"</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">gst_object_unref</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> (</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">pipeline</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#BB2CA2">return</span>;<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif"> }<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> bus =
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">gst_element_get_bus</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">pipeline</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif"> bus_source =
<span style="color:#3D1D81">gst_bus_create_watch</span>(bus);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">g_source_set_callback</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(bus_source, (</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#703DAA">GSourceFunc</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">)</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">gst_bus_async_signal_func</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">,
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">NULL</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">,
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">NULL</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_source_attach</span>(bus_source, <span style="color:#4F8187">
context</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_source_unref</span>(bus_source);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#78492A">g_signal_connect</span> (<span style="color:#78492A">G_OBJECT</span>(bus),
<span style="color:#D12F1B">"message::error"</span>, (<span style="color:#703DAA">GCallback</span>)<span style="color:#31595D">error_cb</span>, (<span style="color:#BB2CA2">__bridge</span>
<span style="color:#BB2CA2">void</span> *)<span style="color:#BB2CA2">self</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#78492A">g_signal_connect</span> (<span style="color:#78492A">G_OBJECT</span>(bus),
<span style="color:#D12F1B">"message::eos"</span>, (<span style="color:#703DAA">GCallback</span>)<span style="color:#31595D">eos_cb</span>, (<span style="color:#BB2CA2">__bridge</span>
<span style="color:#BB2CA2">void</span> *)<span style="color:#BB2CA2">self</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#78492A">g_signal_connect</span> (<span style="color:#78492A">G_OBJECT</span>(bus),
<span style="color:#D12F1B">"message::state-changed"</span>, (<span style="color:#703DAA">GCallback</span>)<span style="color:#31595D">state_changed_cb</span>, (<span style="color:#BB2CA2">__bridge</span>
<span style="color:#BB2CA2">void</span> *)<span style="color:#BB2CA2">self</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#78492A">g_signal_connect</span> (<span style="color:#78492A">G_OBJECT</span>(bus),
<span style="color:#D12F1B">"message::duration"</span>, (<span style="color:#703DAA">GCallback</span>)<span style="color:#31595D">duration_cb</span>, (<span style="color:#BB2CA2">__bridge</span>
<span style="color:#BB2CA2">void</span> *)<span style="color:#BB2CA2">self</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#78492A">g_signal_connect</span> (<span style="color:#78492A">G_OBJECT</span>(bus),
<span style="color:#D12F1B">"message::clock-lost"</span>, (<span style="color:#703DAA">GCallback</span>)<span style="color:#31595D">clock_lost_cb</span>, (<span style="color:#BB2CA2">__bridge</span>
<span style="color:#BB2CA2">void</span> *)<span style="color:#BB2CA2">self</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#78492A">g_signal_connect</span> (<span style="color:#4F8187">pipeline</span>,
<span style="color:#D12F1B">"about-to-finish"</span>, (<span style="color:#703DAA">GCallback</span>)<span style="color:#31595D">prepare_next_stream</span>, (<span style="color:#BB2CA2">__bridge</span>
<span style="color:#BB2CA2">void</span> *)<span style="color:#BB2CA2">self</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif"> timeout_source =
<span style="color:#3D1D81">g_timeout_source_new</span>(<span style="color:#272AD8">1</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_source_set_callback</span>(timeout_source, (<span style="color:#703DAA">GSourceFunc</span>)<span style="color:#31595D">refresh_ui</span>, (<span style="color:#BB2CA2">__bridge</span>
<span style="color:#BB2CA2">void</span> *)<span style="color:#BB2CA2">self</span>,<span style="color:#BB2CA2">NULL</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_source_attach</span>(timeout_source, <span style="color:#4F8187">
context</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_source_unref</span>(timeout_source);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt;min-height:13px"><span style="font-size:8.5pt;font-family:"Menlo",serif"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#78492A">GST_DEBUG</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B">"Entering main loop..."</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">main_loop</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> =
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">g_main_loop_new</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">context</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">,
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">FALSE</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> [</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">self</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#31595D">check_initializing_complete</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">];</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#31595D"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">g_main_loop_run</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">main_loop</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#78492A">GST_DEBUG</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B">"Exiting main loop..."</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#D12F1B"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81">g_main_loop_unref</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">(</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">main_loop</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">);</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#3D1D81"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187">main_loop</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"> =
</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">NULL</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">;</span><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#4F8187"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">//My about to finish function<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif;color:#BB2CA2">static</span><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#BB2CA2">void</span> prepare_next_stream (<span style="color:#703DAA">GstElement</span> *obj,
<span style="color:#4F8187">GStreamerBackend</span> *<span style="color:#BB2CA2">self</span>){<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#703DAA">NSString</span>* uri = [<span style="color:#BB2CA2">self</span>
<span style="color:#31595D">playNext</span>];<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#BB2CA2">if</span>(![uri <span style="color:#3D1D81">isEqualToString</span>:<span style="color:#D12F1B">@""</span>])<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif"> {<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#BB2CA2">const</span> <span style="color:#BB2CA2">char</span> *char_uri = [uri
<span style="color:#3D1D81">UTF8String</span>];<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">
<span style="color:#3D1D81">g_object_set</span> (<span style="color:#BB2CA2">self</span>-><span style="color:#4F8187">pipeline</span>,
<span style="color:#D12F1B">"uri"</span>, char_uri, <span style="color:#BB2CA2">NULL</span>);<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif"> }<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:8.5pt;font-family:"Menlo",serif">}<o:p></o:p></span></p>
</div>
<p class="MsoNormal">Regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Aug 17, 2016 at 2:40 PM, adeel <<a href="mailto:arshad.adeel.83@gmail.com" target="_blank">arshad.adeel.83@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Dear All<br>
<br>
This is my pipeline<br>
<br>
video_bin = gst_parse_bin_from_description("tee name=t t. ! queue !<br>
autovideosink t. ! decklinkvideosink mode=3", TRUE, NULL);<br>
<br>
video_filter_bin = gst_parse_bin_from_description("capssetter<br>
caps=video/x-raw,interlace-mode=interleaved,width=720,height=576", TRUE,<br>
NULL);<br>
<br>
audio_bin = gst_parse_bin_from_description("audioconvert !<br>
decklinkaudiosink", TRUE, NULL);<br>
<br>
When I play list of files I face the issue that my files are not playing<br>
till the last frame. Only the last file playing till the end<br>
<br>
What I am lacking in the code<br>
<br>
Regards<br>
Adeel Arshad<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/gapless-playback-is-not-playing-full-video-tp4679124.html" target="_blank">
http://gstreamer-devel.966125.n4.nabble.com/gapless-playback-is-not-playing-full-video-tp4679124.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>