Commit graph

116 commits

Author SHA1 Message Date
Stefan Kost
0387a89cad various (ext): add missing G_PARAM_STATIC_STRINGS flags
Canonicalize property names as needed.
2010-10-19 17:13:26 +03:00
Tim-Philipp Müller
887fc8e6e7 resindvdsrc: improve error messages on read erros
Provide i18n-ed error messages when a read error happens,
and point out that the error could be happening because the
DVD is scrambled.

https://bugzilla.gnome.org/show_bug.cgi?id=613633
2010-09-26 20:43:43 +01:00
David Schleef
c3d4977761 Split out GST_PLUGINS_BAD_CFLAGS from GST_CFLAGS
Move include directives for gst-libs into GST_PLUGINS_BAD_CFLAGS,
and fix all the Makefiles that use it.  This is so that all the
include directories are added in the proper order: first the
directories in srcdir/builddir, then gst-plugins-base dirs, then
gstreamer dirs.  If the order is wrong, installed headers may be
used instead of local headers and/or uninstalled headers from -base.
2010-05-19 18:24:02 -07:00
Jan Schmidt
491a202d5c resindvd: Apply caps to generated buffers
Avoid the new warning from the core about not being able to apply caps
to NAV packet buffers, where resindvdsrc holds a ref.
2010-05-06 22:39:05 +10:00
Sebastian Dröge
49a85930c5 resindvdbin: Use GST_FLOW_CUSTOM_SUCCESS instead of some integer
Fixes compiler warnings with gcc 4.5.

This is the same as commit 5a51dbd.
2010-04-16 19:45:16 +02:00
Sebastian Dröge
cd890c6846 Revert "resindvdbin: Apply gcc 4.5 compiler warning workaround to the mpegpsdemux copy"
This reverts commit 65b0f75d1b.
2010-04-16 19:41:46 +02:00
Sebastian Dröge
65b0f75d1b resindvdbin: Apply gcc 4.5 compiler warning workaround to the mpegpsdemux copy
Same as a331228ecc.
2010-04-15 21:40:19 +02:00
Benjamin Otte
33c2f5fb01 Add -Wwrite-strings
and fix its warnings
2010-03-22 13:16:33 +01:00
Benjamin Otte
f96e4f1581 Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
2010-03-21 21:39:18 +01:00
Benjamin Otte
775c7584fd gst_element_class_set_details => gst_element_class_set_details_simple 2010-03-18 22:46:41 +01:00
Tim-Philipp Müller
c31559841a resindvd: fix unaligned access in this copy of mpegdemux as well
See #606371.
2010-01-11 01:03:38 +00:00
Jan Schmidt
2e4c26239e resindvd: Remove local basesrc copy
Use the real version of basesrc instead of a local copy now that it
supports the seamless segment feature that resin needs.
2009-11-21 17:37:31 +01:00
Jan Schmidt
6b45854967 resindvd, dvdspu: Use new still-frame API from gst-plugins-base
Replace the current custom DVD still-frame events with new event
creation/parsing API from libgstvideo.
2009-11-18 03:10:32 +00:00
Jan Schmidt
c4fb624ad9 resindvd: Guard against a divide-by-zero error.
https://bugzilla.gnome.org/show_bug.cgi?id=600263
2009-11-18 01:58:20 +00:00
Tim-Philipp Müller
02c5942325 resindvd: printf format fixes 2009-11-05 21:47:05 +00:00
Jan Schmidt
7d53c39237 resindvd,autoconvert: Avoid depending on 0.10.26 API
Wait until after the next release to bump the core requirement.
Until then, don't use gst_plugin_feature_list_copy and
gst_pad_peer_get_caps_refed.
2009-11-04 23:17:33 +00:00
Jan Schmidt
3d3d131b0f resindvd: Remove old code and obsolete comments
Remove some disabled code paths and obsolete FIXME comments
2009-11-04 23:10:16 +00:00
Jan Schmidt
f7b832d19b resindvd: Fix an oversight from updating the copy of basesrc
Plugins need gst-i18n-plugin.h, not gst-i18n-lib.h
2009-11-02 10:22:41 +00:00
Jan Schmidt
bc331df7f5 resindvd: Use gst_base_src_new_seamless_segment()
When switching to a new seamless segment, use the new
gst_base_src_new_seamless_segment() function, because elements can't
send themselves seek events from the streaming thread.
2009-11-02 02:54:23 +01:00
Jan Schmidt
d0e4331648 resindvd: Add gst_base_src_new_seamless_segment() to GstBaseSrc copy
Add a new function to the internal copy of GstBaseSrc for starting a new
seamless segment.
2009-11-02 02:54:23 +01:00
Jan Schmidt
3e72e7b48b resindvd: Update the base source copy
This breaks seamless segment updates, causing deadlocks,
to be fixed in subsequent commits.
2009-11-02 02:54:23 +01:00
Jan Schmidt
4a394cd8cf resindvd: Remove extra new-segment in rsnstreamselector. Send discont.
All the input pads for the resin stream selectors have the same source,
and receive/send the same segment info, so there's no need to send a
segment when switching and activating a different pad. Removing it makes
on-the-fly audio track switching work properly.

After switching audio track, mark the next buffer discont.
2009-10-27 12:23:26 +00:00
Jan Schmidt
1b03e576e1 resindvd: Avoid a deadlock. Improve chapter seek.
Avoid a potential deadlock that happens when a call to
gst_clock_id_wait_async() immediately calls the callback.
Improve previous chapter seeking slightly by avoiding 'segment
start != -1' assertions when there is no previous chapter and
the seek therefore fails.
2009-10-27 12:23:26 +00:00
Jan Schmidt
0c7d5bb1d8 resindvd: lower a debug message to log level. 2009-10-27 12:23:25 +00:00
Jan Schmidt
b5caf70b41 resindvd: Add a keypress mapping for switching audio track
For debugging purposes, make keys 1-8 switch audio track.
2009-10-27 12:23:25 +00:00
Jan Schmidt
f33a906157 resindvd: Set the new initial-identity property on autoconvert
https://bugzilla.gnome.org/show_bug.cgi?id=599469
2009-10-27 12:23:24 +00:00
Jan Schmidt
68621dfa56 resindvd: Re-send audio stream select on re-configuration
When the layout of the audio streams changes, re-send the current
audio stream selection event, in order to trigger switching to the
new stream properly.

https://bugzilla.gnome.org/show_bug.cgi?id=575568
2009-10-16 11:09:14 +01:00
Jan Schmidt
53bc4d1803 resindvd: Fix a small flaw - if any audio stream exists, use it
Don't create a dummy audio stream if only non-AC3 tracks exist.
2009-10-16 11:09:14 +01:00
Jan Schmidt
cb2d8b984d resindvd: Fix decoder pad template to allow LPCM
The pad template in the new switching decoder is too restrictive,
preventing the LPCM decoder from being selected.

https://bugzilla.gnome.org/show_bug.cgi?id=575568
2009-10-15 22:35:40 +01:00
Jan Schmidt
30845f1118 resindvd: Don't leak a reference to the parent in rsnaudiomunge
Don't leak a reference to the pad parent in the sink pad event handler
in rsnaudiomunge.

https://bugzilla.gnome.org/show_bug.cgi?id=598263
2009-10-13 15:10:09 +01:00
Stefan Kost
b7b8b7f407 build: fprintf, sprintf, sscanf need stdio.h 2009-10-07 15:26:12 +03:00
Sebastian Dröge
5df38440d0 resindvdbin: If no suitable audio decoder is found play the DVD without audio 2009-10-01 15:09:27 +02:00
Sebastian Dröge
5d74676294 resindvdbin: Also post missing element messages if any other element is missing 2009-10-01 14:54:43 +02:00
Sebastian Dröge
b67bc258c8 resindvdbin: Post missing decoder messages if one is missing
For video this is an error, for audio only a warning.
2009-10-01 14:52:06 +02:00
Sebastian Dröge
02fbd5b42a resindvdbin: Use the new video decoder
This makes resindvdbin work with other MPEG video decoders than
mpeg2dec, for example the FFMPEG or Fluendo MPEG decoders.
2009-10-01 14:42:36 +02:00
Sebastian Dröge
157a6a7856 resindvdbin: Rename files 2009-10-01 14:37:43 +02:00
Sebastian Dröge
e998a22d0c resindvdbin: Refactor audio decoder and add a (MPEG) video decoder 2009-10-01 14:36:23 +02:00
Sebastian Dröge
3fe4b2106d rsnaudiodec: Get desired sink caps from the pad template 2009-10-01 13:29:03 +02:00
Sebastian Dröge
d96defb164 resindvdbin: Create external srcpads from the static pad templates 2009-09-30 15:49:02 +02:00
Sebastian Dröge
0171e32944 resindvdbin: Use gst_caps_can_intersect() because it's faster 2009-09-26 17:25:59 +02:00
Sebastian Dröge
bf1b64fab0 rsnaudiodec: Use ghost pads and always forward application/x-gst-dvd events immediately
Fixes bug #582779.
2009-09-26 17:25:59 +02:00
Jan Schmidt
e6165520b9 resindvdbin: Use autoconvert in rsnaudiodec and build a list of possible decoders
Partially fixes bug #582779.
2009-09-26 17:25:58 +02:00
Sebastian Dröge
07f9536476 rsnstreamselector: Use new single object iterator for the internally linked pads
This prevents an ugly deadlock.
2009-09-25 11:07:49 +02:00
Sebastian Dröge
a9e05725d2 resindvdbin: Don't block the external ghost pads but only their targets 2009-09-25 10:51:45 +02:00
Sebastian Dröge
07bd0d87aa rsnstreamselector: Use iterate internal links instead of deprecated get internal links 2009-08-31 08:14:10 +02:00
Руслан Ижбулатов
09b2abf87b resindvd, rawparse: fix LDFLAGS for gst-plugins-base libs
Fixes #593063.
2009-08-25 23:55:41 +01:00
Jan Schmidt
6fd890d65f resindvd: Don't send empty language code strings
Ignore empty language codes on some poorly coded DVDs, rather than
setting empty strings into our outgoing taglist.
2009-07-13 19:30:50 +01:00
Tim-Philipp Müller
6eb167a176 Make build without warnings with debugging disabled 2009-06-19 16:21:28 +01:00
Jan Schmidt
4d5a48db97 resindvd: Create all the audio streams of all formats
Enable creation of the demuxer pads for all audio streams, even types we
don't yet support. This means that unsupported types (LPCM, DTS) are output,
but not linked to anything yet. If only unsupported streams are available,
the user hears silence instead of having the pipeline not pre-roll correctly.

This is a prerequisite for hooking up the automatic decoder switching.
2009-05-27 22:57:03 +01:00
Jan Schmidt
8f70498c89 resindvd: LPCM streams are only from 0xa0 to 0xaf.
Fix the same bug as the previous commit, but in resindvd's copy of
mpegdemux.
2009-05-26 21:07:47 +01:00