summaryrefslogtreecommitdiff
path: root/gst/pcapparse/gstpcapparse.c
Commit message (Collapse)AuthorAgeFilesLines
* pcapparse: don't crash on 0-sized packetsTim-Philipp Müller2015-12-231-1/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756573
* pcapparse: Forward FLUSH_STOP events downstream tooPaolo Pettinato2015-12-071-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=758913
* pcapparse: Hook up the recently added change_state vfunc.Jan Schmidt2015-09-181-1/+6
| | | | | The state change function was implemented, but not installed, making the compiler complain about the unused function.
* pcapparse: Reset state on flush and state changesOlivier Crête2015-08-311-4/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=753152
* pcapparse: Segment should start at base tsNicolas Dufresne2015-08-051-1/+1
| | | | | | | Instead we would use cur_ts which matches the last TS store in the buffer list. https://bugzilla.gnome.org/show_bug.cgi?id=753037
* pcapparse: fix another regressionTim-Philipp Müller2015-07-031-2/+5
| | | | | | | | | | | | Introduced by c4c9fe60b pcapparse: Take buffer directly from the adapter Using gst_adapter_take_buffer_fast() can lead to buffers that are made up of multiple memories with the first memory smaller than the RTP header size, which violates assumptions GstRtpBaseDepayloader makes, namely that the complete RTP header will be in the first memory. This leads to such packets being dropped when feeding them from pcapparse to RTP depayloaders. Use take_buffer() so we get buffers with a single memory.
* pcapparse: fix regression when handling packets with eth paddingTim-Philipp Müller2015-07-031-3/+2
| | | | | | | | | | Introduced by c4c9fe60b pcapparse: Take buffer directly from the adapter Flush any trailing bytes after the payload from the adapter as well, otherwise we'll read a bogus packet size from the adapter next and then everything goes downhill from there. https://bugzilla.gnome.org/show_bug.cgi?id=751879
* remove unused enum items PROP_LASTLuis de Bethencourt2015-04-241-2/+1
| | | | | This were probably added to the enums due to cargo cult programming and are unused.
* pcapparse: Take buffer directly from the adapterOlivier Crête2015-04-101-27/+24
| | | | | No need to make a copy into a new buffer, just take the data from the adapter.
* pcapparse: Produce GstBufferListOlivier Crête2015-04-101-13/+24
|
* pcapparse: Add support for LINKTYPE_RAWDavid Woodhouse2014-10-091-5/+14
| | | | | | | | Also, strictly speaking, these numbers aren't DLT_*; they are LINKTYPE_* because libpcap translates from internal OS-specific DLT_ numbering to the portable LINKTYPE_ number space when writing files. https://bugzilla.gnome.org/show_bug.cgi?id=738206
* pcapparse: Remove unneeded unref and only set pad caps if we have capsZaheer Abbas Merali2013-08-141-3/+2
| | | | | | Fixes crashes due to invalid unrefs. https://bugzilla.gnome.org/show_bug.cgi?id=705957
* Fix FSF addressTim-Philipp Müller2012-11-041-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687520
* Use gst_element_class_set_static_metadata()Tim-Philipp Müller2012-10-171-1/+1
| | | | | where possible. Avoids some string copies. Also re-indent some stuff. Also some indent fixes here and there.
* replace gst_element_class_set_details_simple with gst_element_class_set_metadataMark Nauwelaerts2012-09-141-1/+1
|
* port some more to new memory APIMark Nauwelaerts2012-01-251-4/+4
|
* pcapparse: port to 0.11Mark Nauwelaerts2012-01-161-39/+43
|
* irtspparse: add Interleaved RTSP parser elementMark Nauwelaerts2011-09-261-14/+0
|
* pcapparse: fix compiler warningTim-Philipp Müller2011-07-271-0/+2
| | | | | | gstpcapparse.c: In function 'gst_pcap_parse_chain': gstpcapparse.c:381:6: error: 'eth_type' may be used uninitialized in this function [-Werror=uninitialized] gstpcapparse.c:354:11: note: 'eth_type' was declared here
* pcapparse: fix SLL parsingFelipe Contreras2011-07-271-8/+4
| | | | | | | | | | | | | | | | The current code is not checking for ethernet type, as it's supposed to, but link layer device type and it's hard-coded to only accept dumps from ethernet (ARPHRD_ETHER; 1). We don't care where the dump was fetched from (wlan, 3G, etc.) What we care about is the that the ethernet type is IP (ETHERNET_IP; 0x800), which is clearly field 14: http://www.tcpdump.org/pcap3_man.html And do a bit of cleanup. Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
* pcapparse: Fix format string compiler warningSebastian Dröge2011-07-191-1/+1
|
* pcapparse: rename offset property to ts-offsetMark Nauwelaerts2011-07-151-5/+9
| | | | ... so as to promote consistency with some other elements in the wild.
* pcapparse: properly apply ts offsetMark Nauwelaerts2011-07-141-2/+4
|
* pcapparse: optionally output relative timestamps, possibly shifted by offsetMark Nauwelaerts2011-07-141-0/+24
| | | | | | That is, output timestamps can then either be the absolute capture time, or the relative capture time (w.r.t. to first output buffer), or the relative capture time incremented by some offset.
* pcapparse: also support extracting tcp dataMark Nauwelaerts2011-07-141-21/+42
|
* pcapparse: Fix set-but-unused warningsOlivier Crête2011-07-121-2/+1
|
* Fix compiler warnings with gcc 4.2.1 on OSX.Alessandro Decina2010-12-011-1/+1
|
* pcapparse: Add support for Linux Cooked Capture (SLL) framesOlivier Crête2010-11-031-8/+26
|
* pcapparse: Fail on unknown version or linktypeOlivier Crête2010-11-031-9/+30
| | | | The element only knows about major version 2 and only decodes linktype ethernet
* pcapparse: Send error GstMessage if stream doesn't have the expected magicOlivier Crête2010-11-031-2/+5
|
* various (gst): add missing G_PARAM_STATIC_STRINGS flagsStefan Kost2010-10-191-5/+8
| | | | Canonicalize property names as needed.
* pcapparse: fix weird caps codeWim Taymans2010-09-221-21/+39
| | | | | | Remove the weird (failing) code to figure out caps on the srcpad. Add a caps property to decide what caps to put on the outgoing buffers. Fix an event leak.
* gst_element_class_set_details => gst_element_class_set_details_simpleBenjamin Otte2010-03-181-7/+4
|
* pcapparse: Set the GStreamer timestamp according to the pcap timestampsOlivier Crête2009-09-031-0/+37
|
* gst/pcapparse/: Patch to make gstpcapparse compile with mingw32 gcc. Fixes ↵Damien Lespiau2008-12-291-1/+1
| | | | | | | | | | #565439. Original commit message from CVS: Patch by: Damien Lespiau <damien dot lespiau at gmail dot com> * gst/pcapparse/Makefile.am: * gst/pcapparse/gstpcapparse.c: Patch to make gstpcapparse compile with mingw32 gcc. Fixes #565439.
* ext/celt/gstceltenc.h: Help gtk-doc to parse this correctly.Stefan Kost2008-09-151-0/+2
| | | | | | | | Original commit message from CVS: * ext/celt/gstceltenc.h: Help gtk-doc to parse this correctly. * gst/pcapparse/gstpcapparse.c: Add missing include.
* gst/pcapparse/gstpcapparse.c: Remove unused code and fix includes.Edward Hervey2008-08-261-12/+3
| | | | | | Original commit message from CVS: * gst/pcapparse/gstpcapparse.c: (gst_pcap_parse_class_init): Remove unused code and fix includes.
* Added documentation blobs. Thanks to Stefan for noticing!Ole André Vadla Ravnås2008-08-241-6/+11
| | | | | | | | Original commit message from CVS: * gst/pcapparse/gstpcapparse.c: * sys/winscreencap/gstdx9screencapsrc.c: * sys/winscreencap/gstgdiscreencapsrc.c: Added documentation blobs. Thanks to Stefan for noticing!
* New plugin: pcapparse (#520899).Ole André Vadla Ravnås2008-08-241-0/+480
Original commit message from CVS: * configure.ac: * gst/pcapparse/Makefile.am: * gst/pcapparse/gstpcapparse.c: * gst/pcapparse/gstpcapparse.h: New plugin: pcapparse (#520899).