<div dir="ltr"><div><div>Hello All,<br><br></div>I'm trying to use AppSink in playbin. Here is my code -<br><br></div><b>/* Create AppSink & add to playbin */</b><br><div>data->audioSinkElement = gst_element_factory_make ("appsink", "appsink");    <br>g_object_set (G_OBJECT(data->playBin), "audio-sink", data->audioSinkElement, NULL);<br><br><b>/* Configure appsink */</b><br>g_object_set (G_OBJECT (vdata->audioSinkElement), "sync", TRUE, NULL); <br>g_object_set (data->audioSinkElement, "emit-signals", TRUE, NULL);<br>g_signal_connect (data->audioSinkElement, "new-sample", G_CALLBACK (new_sample), NULL);<br><br><b>/* signalled when a new sample buffer is available */</b><br>static void new_sample (GstElement * appsink, gpointer user_data)<br>{<br>  GstSample *sample=NULL;<br><br>  g_signal_emit_by_name (appsink, "pull-sample", &sample, NULL);<br>  if (sample) {<br>    g_print("Got sample=%p", sample);<br>    gst_sample_unref (sample);<br>  }<br>}<br><br></div><div><b>Problem is -</b><br></div><div>I see "Got sample" print only couple of times after which pipeline hangs. <br><br></div><div>Please help me find bug in my code. Thanks in advance.<br><br></div><div>Thanks & Regards,<br></div><div>MB<br></div><div><br></div></div>