<div>Hi, I play an .avi file with the elements and linkings described below, it works fine. However when debugging, this message appears:</div><div><br></div><div>WARN bin gstbin.c:2380:gst_bin_do_latency_func:<media-player> did not really configure latency of 0:00:00.000000000</div>
<div><br></div><div>Do I be aware of something in particular?, which means exactly?</div><div>thanks</div><div><br></div><div><br></div><div>This is the core of the code:</div><div><br></div><div><div> /* Create gstreamer elements */</div>
<div> pipeline = gst_pipeline_new ("media-player");</div><div> source = gst_element_factory_make ("filesrc", "file-source");</div><div> demuxer = gst_element_factory_make ("avidemux", "avi-demuxer");</div>
<div> decvd = gst_element_factory_make ("ffdec_mpeg4", "mpeg4-decoder");</div><div> decad = gst_element_factory_make ("mad", "mp3-decoder");</div><div> vdsink = gst_element_factory_make ("autovideosink", "video-sink");</div>
<div> vdqueue = gst_element_factory_make ("queue", "video-queue");</div><div> adqueue = gst_element_factory_make ("queue", "audio-queue");</div><div> adsink = gst_element_factory_make ("alsasink", "audio-sink");</div>
<div><br></div><div> :::::::::::::::::::::::::::::::::::::::::::::::::::::</div><div><br></div><div> /* Set up the pipeline */</div><div><br></div><div> /* we set the input filename to the source element */</div><div> g_object_set (G_OBJECT (source), "location", argv[1], NULL);</div>
<div><br></div><div> /* we add a message handler */</div><div> bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));</div><div> gst_bus_add_watch (bus, bus_call, loop);</div><div> gst_object_unref (bus);</div><div><br>
</div><div> /* we add all elements into the pipeline */</div><div> gst_bin_add_many (GST_BIN (pipeline),source, demuxer, decvd, decad, adqueue, vdqueue, vdsink, adsink, NULL);</div><div><br></div><div> /* we link the elements together */</div>
<div> gst_element_link (source, demuxer);</div><div> gst_element_link (decvd, vdqueue);</div><div> gst_element_link (vdqueue, vdsink);</div><div> gst_element_link (decad, adqueue);</div><div> gst_element_link (adqueue, adsink);</div>
<div><br></div><div> g_signal_connect (demuxer, "pad-added", G_CALLBACK (on_pad_added), NULL);</div></div><div><br></div>