[gst-devel] rx-pipeline

Michael Trimarchi michael at panicking.kicks-ass.org
Fri Nov 5 15:50:00 CET 2010


On 11/05/2010 02:30 PM, Marco Ballesio wrote:
> Hi,
>
> On Fri, Nov 5, 2010 at 2:01 PM, Michael Trimarchi<
> michael at panicking.kicks-ass.org>  wrote:
>
>> Hi all
>>
>> I have created an rx-pipeline. The socket is allocated before and is
>> assigned to the udpsrc
>>
>
> ..snip..
>
> I starts to receive packet and then stop.
>>
>> udpsrc = gst_element_factory_make ("udpsrc", "udpsrc0");
>> assert (udpsrc != NULL);
>>
>> g_object_set(G_OBJECT(self->sm_udpsrc),
>>               "caps", caps,
>>               "sockfd", sock,
>>               "port", port,
>>               NULL);
>>
>> Then it's connected to a depayloader element a decelement and audiosink
>> element.
>>
>> There are no ERROR message in the log and seems that it stucks. Any idea?
>>
>
> run the pipeline with gdb and get a bt for where it gets stuck.
> Alternatively, enable core dumps, send a SIGABRT and check the backtrace
> with gdb (may you can attach it to pastebin and post a link here).


0:00:08.180251497 16201  0x805e128 DEBUG                 udpsrc gstudpsrc.c:837:gst_udpsrc_start:<udpsrc0> using provided socket 19
0:00:08.180343757 16201  0x805e128 DEBUG                 udpsrc gstudpsrc.c:873:gst_udpsrc_start:<udpsrc0> have udp buffer of 114688 bytes
0:00:08.180385033 16201  0x805e128 DEBUG                 udpsrc gstudpsrc.c:906:gst_udpsrc_start:<udpsrc0> bound, on port 16384
0:00:08.180558169 16201  0x805e128 LOG                   udpsrc gstudpsrc.c:992:gst_udpsrc_unlock_stop:<udpsrc0> No longer flushing
[New Thread 0xa3dd2b70 (LWP 16210)]
0:00:08.183153877 16201  0x805e128 LOG                   udpsrc gstudpsrc.c:992:gst_udpsrc_unlock_stop:<udpsrc0> No longer flushing

...

gst_udpsrc_create:<udpsrc0> ioctl says 172 bytes available
0:00:34.012355001 16201 0xb4400468 LOG                   udpsrc gstudpsrc.c:564:gst_udpsrc_create:<udpsrc0> read 172 bytes
0:00:34.036124526 16201 0xb4400468 LOG                   udpsrc gstudpsrc.c:493:gst_udpsrc_create:<udpsrc0> ioctl says 172 bytes available
0:00:34.036172576 16201 0xb4400468 LOG                   udpsrc gstudpsrc.c:564:gst_udpsrc_create:<udpsrc0> read 172 bytes
0:00:34.060245211 16201 0xb4400468 LOG                   udpsrc gstudpsrc.c:493:gst_udpsrc_create:<udpsrc0> ioctl says 172 bytes available
0:00:34.060299198 16201 0xb4400468 LOG                   udpsrc gstudpsrc.c:564:gst_udpsrc_create:<udpsrc0> read 172 bytes
0:00:34.084272869 16201 0xb4400468 LOG                   udpsrc gstudpsrc.c:450:gst_udpsrc_create:<udpsrc0> doing select, timeout 0
gst_udpsrc_create:<udpsrc0> doing select, timeout 0

452	    ret = gst_poll_wait (udpsrc->fdset, timeout); <---------- seems to be block here
453	    GST_LOG_OBJECT (udpsrc, "select returned %d", ret);
454	    if (G_UNLIKELY (ret < 0)) {
455	      if (errno == EBUSY)
456	        goto stopped;
457	#ifdef G_OS_WIN32
458	      if (WSAGetLastError () != WSAEINTR)
459	        goto select_error;
460	#else
(gdb) l
461	      if (errno != EAGAIN && errno != EINTR)
462	        goto select_error;

Michael


>
> Regards
>
>
>>
>> Michael
>>
>>
>> ------------------------------------------------------------------------------
>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>> David G. Thomson, author of the best-selling book "Blueprint to a
>> Billion" shares his insights and actions to help propel your
>> business during the next growth cycle. Listen Now!
>> http://p.sf.net/sfu/SAP-dev2dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list