no data flow after output-selector

pavel justason at mail.ru
Mon Oct 21 14:54:43 CEST 2013


Hello, I'm trying to execute next pipeline:
gst-launch
        "videotestsrc is-live=true horizontal-speed=2 ! "
        "video/x-raw-yuv,framerate=25/1,width=352,height=576 ! "
        "ffmpegcolorspace ! "
        "queue max-size-buffers=2 leaky=2 ! "
        "output-selector name=os "
        " os. ! appsink name=app-sink-01 "
        " os. ! appsink name=app-sink-02 ";

both app-sinks are configured as follows:
    sink_02 = gst_bin_get_by_name (GST_BIN (data->pipeline), "app-sink-02");
    if (sink_02 != NULL)
    {
        print_log(LOG_DEBUG, "%s-%d: Object \"appsink\" Created\n",
__func__, __LINE__);
        g_object_set (sink_02, "emit-signals", TRUE, (char *)NULL);
        g_signal_connect (sink_02, "new-buffer", G_CALLBACK (new_buffer_02),
data);
        printf("%s-%d: Object \"appsink\" Configured\n", __func__,
__LINE__);
    }

and the new_buffer handler: 

static void new_buffer_02 (GstElement *sink, gpointer user_data)
{
    CustomData *data = (CustomData *)user_data;
    GstBuffer *buffer=NULL;
    ssize_t avail;


    g_signal_emit_by_name (sink, "pull-buffer", &buffer);
    if (buffer)
    {
        printf("%s: buffer: 0x%X, %d bytes\n", __func__, buffer, avail);
    }
}

Somehow, the new_buffer handlers newer get called.
However, the new_buffer is called, when I'm executing this pipeline.

gst-launch
        "videotestsrc is-live=true horizontal-speed=2 ! "
        "video/x-raw-yuv,framerate=25/1,width=352,height=576 ! "
        "ffmpegcolorspace ! "
        "queue max-size-buffers=2 leaky=2 ! appsink name=app-sink-01 ";

What configuration is missing? 




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/no-data-flow-after-output-selector-tp4662765.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list