Commit graph

1106 commits

Author SHA1 Message Date
Michael Olbrich
9f51f72b37 dvdlpcmdec: add support for another format
The format specification can be found here:
http://www.dvdforum.org/images/Guideline1394V10R0_20020911.pdf

Note: This format is also used for Wifi-Display.

https://bugzilla.gnome.org/show_bug.cgi?id=765807
2016-07-25 13:37:32 +03:00
Michael Olbrich
35dc8d0f68 dvdlpcmdec: rewrite to use GstAudioDecoder
https://bugzilla.gnome.org/show_bug.cgi?id=765807
2016-07-25 13:37:24 +03:00
Vootele Vesterblom
6ff1c761e4 asfdemux: fix seeking back after EOS has been reached in push mode
Fix seeking when demuxer is in INDEX state. This happens when we
reached the end of the stream. It should still be possible to do
a flushing seek and seek back to any other position though. Instead
the demuxer would just go straight to EOS again instead of going
back to processing packets again from the new position.

https://bugzilla.gnome.org/show_bug.cgi?id=749066
2016-05-27 17:18:32 +01:00
Guillaume Desmottes
f52343fcf8 rdtmanager: fix clock leak
The clock returned by gst_system_clock_obtain() was never unreffed.

https://bugzilla.gnome.org/show_bug.cgi?id=766565
2016-05-20 12:01:19 +01:00
Vineeth TM
eacdaa56b3 ugly: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763082
2016-03-24 14:38:13 +02:00
Edward Hervey
dba14178ce asfdemux: Don't modify segment values on accurate seeks
When dealing with accurate seeks, we want to return exactly the segment
that was requested by the seek event, and not adjust the values.

https://bugzilla.gnome.org/show_bug.cgi?id=755469
2016-03-08 12:27:36 +01:00
Tim-Philipp Müller
62f5601723 asfdemux: fix adding bitrate to stream tags
https://bugzilla.gnome.org/show_bug.cgi?id=699586
2016-02-22 22:08:12 +00:00
Tim-Philipp Müller
f1bb44460d win32: remove outdated build cruft
This hasn't been touched for generations, doesn't work,
and is just causing confusion. We also don't want to
maintain these files manually.
2016-02-21 10:11:12 +00:00
Thiago Santos
deb1b257f4 dvdsubdec: use query caps instead of accept-caps
accept-caps does only a shallow check and a full downstream
caps query is needed to check if ARGB is possible
2016-01-08 22:00:12 -03:00
Ravi Kiran K N
9ee60482b2 asfdemux: Support reverse playback
Support reverse playback for ASF format.
Parse packets and queue the payloads, then push
the payload buffer to decoder in reverse order.
Video buffers are pushed from KeyFrame to next
Keyframe.

https://bugzilla.gnome.org/show_bug.cgi?id=757341
2016-01-04 16:13:03 -05:00
Tim-Philipp Müller
d57b097198 dvdlpcmdec: fix invalid read beyond channel position array
We would always copy sizeof(sorted_position) bytes, which is
for 8 channels, but if we have less than 8 channels the
position array we copy from will only have allocated space
for channel channels, so we would read beyond the input
array in some cases.
2015-09-26 09:24:25 +01:00
HoonHee Lee
d7f78391b4 dvdlpcmdec: factor out common code to set output format into new function
When caps event is recieved and header is changed, reordering channel
and setting the default output format for audio are processed. These 2 of
code are same. Thus, It is better to make a new function for these common
code in terms of removing duplicated code, maintenance and expansion.

https://bugzilla.gnome.org/show_bug.cgi?id=753920
2015-09-26 09:18:05 +01:00
Sebastian Dröge
738e48ef49 asfdemux: Don't push any data on pads after the segment.stop
https://bugzilla.gnome.org/show_bug.cgi?id=755469
2015-09-25 23:53:47 +02:00
Sebastian Dröge
155c8fc6a6 asfdemux: Only change segment start to a keyframe for KEYUNIT seeks
Not for accurate seeks, which should accurately start at the requested
position.

https://bugzilla.gnome.org/show_bug.cgi?id=755469
2015-09-25 23:53:47 +02:00
Sebastian Dröge
f501188191 asfdemux: Update segment.position when pushing buffers
Without this, non-flushing seeks are not going to work well.

https://bugzilla.gnome.org/show_bug.cgi?id=755469
2015-09-25 23:53:47 +02:00
Sebastian Dröge
c526153ec9 asfdemux: Only push EOS event if we're not doing a segment seek
https://bugzilla.gnome.org/show_bug.cgi?id=755469
2015-09-25 23:53:47 +02:00
Sebastian Dröge
42d7aec412 asfdemux: If pushing buffers returned EOS, go into the EOS and not failure code path
We don't want to unconditionally send an EOS event downstream, but might want
to send a SEGMENT_DONE message/event instead if a segment seek was done
before.

https://bugzilla.gnome.org/show_bug.cgi?id=755469
2015-09-25 23:53:47 +02:00
Tim-Philipp Müller
b41376aba2 asfdemux: fix file mode of some source files 2015-08-28 19:18:32 +01:00
Vineeth TM
ecb6099b44 rmdemux: fix assertion error when freeing old tags.
Check if old_tags is present before calling gst_tag_list_unref

https://bugzilla.gnome.org/show_bug.cgi?id=753301
2015-08-06 01:59:56 -03:00
Vineeth TM
5e7d0a8285 asfdemux: fix assertion error when codec_data is not present in structure
When discovering a particular asf file, caps structure doesn't have
codec_data, and this was not being checked before using the same,
resulting in assertion error

https://bugzilla.gnome.org/show_bug.cgi?id=752803
2015-07-30 13:40:09 +01:00
Luis de Bethencourt
171a1df6eb asfdemux: remove unread value
Init value of idx2 is never used. First usage sets it to idx + 1. Removing
initial value.
2015-07-29 15:56:42 +01:00
Olivier Crête
f2e0276ce4 asfdemux: Don't post error on flushing while reading headers 2015-07-25 14:38:40 -04:00
Tim-Philipp Müller
c12e5d1ad4 rmdemux: mark tag list as global scope 2015-07-21 11:13:27 +01:00
Tim-Philipp Müller
2be1874927 rmdemux: fix taglist leak
merge doesn't take ownership, so must unref the
old tags if we do merge.
2015-07-21 11:10:04 +01:00
Vineeth TM
868a885040 rmdemux: fix wrong unref when there are no tags
Tags should be appended to pending tags and unref'ed only if tags
are present. Else there is no need to append.

https://bugzilla.gnome.org/show_bug.cgi?id=752404
2015-07-21 10:52:54 +01:00
Vineeth T M
42dbce6d57 rmdemux: fix memory leaks during error cases
while adding stream, during error cases, only stream is
being freed. Adapter, pad, tags, subpackets, index are not being
freed resulting in memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=752404
2015-07-21 10:47:39 +01:00
Vineeth T M
c222f1942b rmdemux: fix tag memory leak
tags is not being freed after being merged to the
pending_tags.

https://bugzilla.gnome.org/show_bug.cgi?id=752404
2015-07-16 08:59:20 +01:00
Jan Schmidt
c72abcf782 asfdemux: Use gst_video_multiview_guess_half_aspect() function
Use gst_video_multiview_guess_half_aspect() to guess if frame-packed
stereoscopic video is full-frame per view or not.
2015-06-19 02:04:38 +10:00
Jan Schmidt
6d0ee6c782 asfdemux: Add support for stereoscopic video metadata.
Add parsing of stereoscopic metadata, and place into the caps to
the decoder.

Fix parsing of Advanced Mutual Exclustion objects.

https://bugzilla.gnome.org/show_bug.cgi?id=711190

Based on a patch by HyeJin Choi <meeshel78@hotmail.com>
2015-06-11 11:01:38 +10:00
Chris Clayton
0f80355ba5 xingmux: fix compiler warnings
https://bugzilla.gnome.org/show_bug.cgi?id=750596
2015-06-10 15:33:21 +01:00
Tim-Philipp Müller
f034f77b73 docs: update example pipelines in element docs
Mostly gst-launch -> gst-launch-1.0, but also
use autoaudiosink/autovideosink in more places
and update pipelines a little or flesh out
descriptions.
2015-05-10 11:34:33 +01:00
Luis de Bethencourt
9a18b9e4ce Rename property enums from ARG_ to PROP_
Property enum items should be nameed PROP_ for consistency and readability.
2015-04-27 10:57:12 +01:00
Tim-Philipp Müller
19fd6f240d Remove obsolete Android build cruft
This is not needed any longer.
2015-04-26 17:56:31 +01:00
Luis de Bethencourt
f209829d81 realmedia: remove unused enum item PROP_LAST 2015-04-24 17:05:20 +01:00
Cliff Han
92f5f3f8f3 asfdemux: fix a seek failure due to out-of-range in push mode
A seek in push mode failed for big offsets which are beyond
the range of guint32.

https://bugzilla.gnome.org/show_bug.cgi?id=748162
2015-04-20 09:13:24 +01:00
Mark Nauwelaerts
573ce40fad rmdemux: resurrect some flow return handling
https://bugzilla.gnome.org/show_bug.cgi?id=744572
2015-03-28 18:22:21 +01:00
Mark Nauwelaerts
53642b1073 asfdemux: resurrect some flow return handling
https://bugzilla.gnome.org/show_bug.cgi?id=744572
2015-03-28 18:22:21 +01:00
Tim-Philipp Müller
8f1fbf8d6c dvbsub: fix indentation 2015-03-10 09:33:15 +00:00
Tim-Philipp Müller
0a467495c2 Fix double semicolons 2015-03-10 09:32:51 +00:00
Sebastian Dröge
7dc03df3de Improve and fix LATENCY query handling
This now follows the design docs everywhere, especially the maximum latency
handling.

https://bugzilla.gnome.org/show_bug.cgi?id=744106
2015-02-11 13:56:48 +01:00
Vincent Penquerc'h
86562f56e2 dvdlpcmdec: set channel positions using the appropriate API
https://bugzilla.gnome.org/show_bug.cgi?id=731038
2014-11-12 14:23:30 +00:00
Tim-Philipp Müller
3afe2b7bd1 asfdemux: fix comment 2014-11-05 23:34:56 +00:00
Edward Hervey
ec19c9b6e4 asfdemux: Send duration query upstream first
An upstream element (like mms or some dlna source) might be able to
answer the query. Try that first, else fallback to standard logic
2014-11-05 13:45:29 +01:00
Tim-Philipp Müller
ccb4ae449a asf: fix up file mode 2014-11-02 17:32:45 +00:00
Guillaume Desmottes
07f2043e58 asfdemux: first try to delegate TIME seek events upstream
We should give a chance to upstream to handle TIME seek events before trying
to handle it in asfdemux.

Fix a bug where fast backward seeks where discarded right away because they
were not supported by asfdemux.

https://bugzilla.gnome.org/show_bug.cgi?id=734471
2014-09-16 12:13:41 -03:00
Guillaume Desmottes
8dff7bb38d asfdemux: add ASF_OBJ_METADATA_LIBRARY_OBJECT
We can safely ignore those but best to claim to understand this object type so
we don't raise a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=736060
2014-09-05 10:49:16 +03:00
Thiago Santos
2863d9ae00 asfdemux: if video is h264, check the codec_data for bytestream data
For bytestream we don't want to expose it as codec_data but rather as
streamheader as it is not out-of-band data but data that should be
prepended to the beginning of the stream before the other buffers.

https://bugzilla.gnome.org/show_bug.cgi?id=735070
2014-08-27 10:54:18 -03:00
Thiago Santos
30b8d8a4be asfdemux: simplify log statement
Use the GST_PTR_FORMAT to print the buffer
2014-08-08 16:48:37 -03:00
Sebastian Rasmussen
e593ae2db6 rademux: Print invalid fourcc in error message in hex
Previously this was printed as characters which caused later processing
of the error message to sometimes warn about non-UTF-8 characters.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732716
2014-07-04 08:41:13 +01:00
Thiago Santos
a71a239572 rmdemux: use GstFlowCombiner
Removes flow return combination code to use the newly added GstFlowCombiner

https://bugzilla.gnome.org/show_bug.cgi?id=709224
2014-06-03 10:04:01 -03:00
Thiago Santos
df4a98e510 asfdemux: use GstFlowCombiner
Removes flow return combination code to use the newly added GstFlowCombiner

https://bugzilla.gnome.org/show_bug.cgi?id=709224
2014-06-03 10:04:01 -03:00
Matej Knopp
eb65696251 asfdemux: Handle initial 0 timestamp that should have been -1
https://bugzilla.gnome.org/show_bug.cgi?id=719660
2014-05-26 09:56:11 +02:00
Sebastian Dröge
9953165336 rtspreal: Fix some memory leaks in an error path
CID 1212165.
2014-05-16 12:21:58 +02:00
Tim-Philipp Müller
441e4f33b6 docs: remove outdated and pointless 'Last reviewed' lines from docs
They are very confusing for people, and more often than not
also just not very accurate. Seeing 'last reviewed: 2005' in
your docs is not very confidence-inspiring. Let's just remove
those comments.
2014-04-27 00:29:16 +01:00
Vincent Penquerc'h
c261beac63 dvdsubdec: fix spurious rejection of 0 time offset commands
Coverity 206168
2014-04-10 17:29:30 +01:00
Edward Hervey
fffcbfc127 asfdemux: Fix payloads check
Don't iterate stream->payloads if ... it doesn't exist

CID #1139846
2014-04-03 15:06:22 +02:00
Stefan Sauer
c10d042a0d xingmux: add muxer category and make element plugable
This is required to make encodebin consider the element. Yet it is not enough to
have it plugged it has a lower priority than most mp3encoders and no different
caps.
2014-02-26 11:31:49 +01:00
Sebastian Dröge
abb56c3803 asfdemux: Remove unused function 2014-02-09 23:41:36 +01:00
Tim-Philipp Müller
12509f4a80 asfdemux: only add "format" field with fourcc to WMV caps
Doesn't make sense for e.g. H264 or MJPEG.
2014-01-03 16:20:11 +00:00
HyeJin Choi
1e74f611ee asfdemux: mo_size check bug fix. mo_size is not mandatory field.
So, don't need to check previous payload's mo_size and current
payload's mo_size when merging it.

https://bugzilla.gnome.org/show_bug.cgi?id=710609
2013-10-29 12:05:56 -03:00
Thiago Santos
3de558d96b asfdemux: Keep audio error checking fields only for audio
Video shouldn't need to be descrambled, this can cause frames data
to be corrupted

https://bugzilla.gnome.org/show_bug.cgi?id=684942
2013-10-22 16:16:43 -03:00
Thiago Santos
94a183a071 asfdemux: really copy the buffer data
Pass the copy-memory flag to copy the memory for the output buffer,
otherwise we end with 0-sized buffers

https://bugzilla.gnome.org/show_bug.cgi?id=684942
2013-10-22 15:24:04 -03:00
Thiago Santos
556055e2f1 asfdemux: Only use segment.start as seek_time if it is relative
Relying on the gst_segment_do_seek results for getting the
seeking time should not be used if seek type is SET because the
do_seek function makes the 'cur` position of the seek normalized
on the segment range. This means that seeking beyond the end of the
file might not result in instant EOS as it will end up seeking to
the final ts of the file.

In asf seeking to the final timestamp can lead to seeking to the last
keyframe, meaning a few seconds of video will still be played, which should
not be the desired behavior when seeking beyong file limits.
2013-09-24 14:43:34 -07:00
Thiago Santos
abe5ca6d96 asfdemux: Parse last simple index entry
The entry size is fixed at 6, fix typo to finish parsing the index
correctly until the last sample
2013-09-24 14:43:34 -07:00
Matej Knopp
c5312c7105 asfdemux: fix playback regression in push mode 2013-09-18 18:20:00 +02:00
Thiago Santos
6a5c767ce5 asfdemux: remove unused variable 2013-09-10 19:51:05 -03:00
Matej Knopp
fad302b573 asfdemux: fix build on C89 compilers 2013-08-08 11:56:19 +02:00
Matej Knopp
f27c832011 asfdemux: fix seeking in push mode 2013-08-08 11:56:19 +02:00
Sebastian Dröge
4b0f044151 gst: Don't swap start/stop for negative rates in the SEGMENT query 2013-07-29 12:13:17 +02:00
Sebastian Dröge
eb5dfd5436 real: Implement SEGMENT query 2013-07-29 10:57:38 +02:00
Sebastian Dröge
1ce9d7b2d1 asfdemux: Implement SEGMENT query 2013-07-29 10:56:06 +02:00
Matej Knopp
1803b3c185 asfdemux: Add support for dvr-ms
https://bugzilla.gnome.org/show_bug.cgi?id=705026
2013-07-29 10:07:55 +02:00
Edward Hervey
8f6e8ef56b rtspreal: Ensure output value has an assigned value
In the case where this macro was used, that dest was != NULL but that
the strncmp failed, we would end up with dest_len being undefined.
2013-07-26 16:47:48 +02:00
Thiago Santos
c2eb7118be asfdemux: fix seqnum handling for seeks
Use the same seqnum as the seek for flushes/segments that are
caused by the seek. Also do the same for segment events

Fixes #676242
2013-07-25 15:27:22 -03:00
Sebastian Dröge
a8a32d1317 realmedia: Add support for group-id in the stream-start event 2013-07-22 16:02:46 +02:00
Sebastian Dröge
bde41413f6 asfdemux: Add support for group-id in the stream-start event 2013-07-22 16:02:46 +02:00
Edward Hervey
3c6a9d3e37 rmdemux: Mark demuxer as "running" in push-mode
Allows queries (and other code) to be answered when working in push-mode.

Running would only be set to TRUE accordingly when working in pull-mode
once it had read header/index.

Fixes #680185
2013-07-18 17:15:25 +02:00
Wim Taymans
a5fed6c261 rdt: forward sticky events 2013-06-25 14:20:37 +02:00
Sebastian Dröge
ef182de45f gst: Add better support for static plugins 2013-04-15 15:56:02 +02:00
David Schleef
f8bbe696f5 Use %03u instead of %u in gst_pad_create_stream_id_printf() 2013-03-25 18:58:36 -07:00
Gautier Portet
cf3e901996 xingmux: Properly calculate the number of frames
First, the xing header frame is never added to the count,
we have to increment the count.
Secondly, there is a rounding error when calculating the
frame duration, as spf*GST_SECOND/rate is not an integer
(26122448.9) an it must be 26122449.
2012-11-09 11:33:40 +01:00
Michael Smith
e4a82bdbb1 dvdlpcmdec: Fix parsing of headers to set correct width to allow decode. 2012-11-05 13:20:31 -08:00
Tim-Philipp Müller
9c690b2018 Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 20:40:37 +00:00
Andreas Frisch
619d4db672 dvdsubdec: allocate correct amount of memory for bitmap
https://bugzilla.gnome.org/show_bug.cgi?id=687192
2012-10-30 13:28:09 +00:00
Scott Fan
bbe0cb0440 Makefile.am: Fix typos for generating the Android.mk files
Change libgstasfdemux to libgstasf, and change libgstrealmedia to libgstrmdemux.

The typos led to generate the incorrect Android.mk files for the asfdemux
and realmedia plugin.

https://bugzilla.gnome.org/show_bug.cgi?id=686748
2012-10-24 13:37:26 +01:00
Mark Nauwelaerts
5c0e0dd598 dvdsubparse: send src caps when receiving sink caps 2012-10-18 22:18:28 +02:00
Tim-Philipp Müller
c6b03d0c3b Purge mention of liboil and update REQUIREMENTS
https://bugzilla.gnome.org/show_bug.cgi?id=673285
2012-09-29 12:13:17 +01:00
Wim Taymans
c3b5d7e914 rmdemux: use DTS and PTS
Video uses DTS as timestamps. Set the DTS on the buffers and leave the PTS
undefined to make the decoder do the right thing. We can then remove the code
that tries to guess the PTS from the DTS.
2012-09-13 13:49:33 +02:00
Mark Nauwelaerts
f1a5ca10f4 gst: only activate in pull mode if upstream is seekable 2012-09-11 17:45:39 +02:00
Wim Taymans
414986e17b rademux: tags can be NULL 2012-09-11 11:28:06 +02:00
Mark Nauwelaerts
b456a16344 xingmux: remove defunct commented code 2012-09-11 10:46:52 +02:00
Mark Nauwelaerts
616e9fab0c dvbsubdec: handle and send GAP event
... in stead of update newsegment event.
2012-09-11 10:40:01 +02:00
Mark Nauwelaerts
7c36e720a9 dvbsubdec: adjust disabled code comment style 2012-09-11 10:34:40 +02:00
Tim-Philipp Müller
f79c6e4183 video/x-dvd-subpicture -> subpicture/x-dvd 2012-08-20 23:32:32 +01:00
Sebastian Dröge
3121d53fd3 dvdsubdec: Set alignment at the correct place of GstAllocationParams 2012-08-08 17:41:53 +02:00
Tim-Philipp Müller
7f7b4522fa gst: silence some compiler warnings with -DG_DISABLE_ASSERT 2012-08-08 15:23:27 +01:00
Sreerenj Balachandran
f7a4318b54 asfdemux: avoid some more invalid timestamp arithmetic
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=681291
2012-08-06 16:21:39 +02:00
Sebastian Dröge
87d9927126 gst: Add stream-id to stream-start events 2012-08-06 14:04:05 +02:00
Tim-Philipp Müller
c7fd90c842 gst_tag_list_free -> gst_tag_list_unref 2012-08-04 16:13:36 +01:00
Sebastian Dröge
32857a7621 tag: Update for taglist/tag event API changes 2012-07-28 00:35:59 +02:00