summaryrefslogtreecommitdiffstats
path: root/ext/resindvd
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-02-27 09:42:35 +0000
committerJan Schmidt <thaytan@noraisin.net>2009-04-02 14:46:54 +0100
commit093f844640e209a13a0427f5fe1ff968e40f4009 (patch)
tree04c1b5b9b833d66bcbbacb0399803d647ba97aca /ext/resindvd
parentb6b2677857323360b998464dbc7e1548baa79f1c (diff)
downloadgst-plugins-bad-093f844640e209a13a0427f5fe1ff968e40f4009.tar.gz
gst-plugins-bad-093f844640e209a13a0427f5fe1ff968e40f4009.tar.bz2
gst-plugins-bad-093f844640e209a13a0427f5fe1ff968e40f4009.zip
resindvd: remove unused code path from the bin
Diffstat (limited to 'ext/resindvd')
-rw-r--r--ext/resindvd/resindvdbin.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/ext/resindvd/resindvdbin.c b/ext/resindvd/resindvdbin.c
index c96ff944..f9821111 100644
--- a/ext/resindvd/resindvdbin.c
+++ b/ext/resindvd/resindvdbin.c
@@ -29,6 +29,7 @@
#include "resindvdsrc.h"
#include "rsnstreamselector.h"
#include "rsnaudiomunge.h"
+#include "rsnaudiodec.h"
#include "rsnparsetter.h"
#include "gstmpegdemux.h"
@@ -36,7 +37,6 @@
GST_DEBUG_CATEGORY_EXTERN (resindvd_debug);
#define GST_CAT_DEFAULT resindvd_debug
-#define DECODEBIN_AUDIO 0
#define USE_VIDEOQ 0
#define DVDBIN_LOCK(d) g_mutex_lock((d)->dvd_lock)
@@ -89,10 +89,6 @@ static void demux_pad_added (GstElement * element, GstPad * pad,
RsnDvdBin * dvdbin);
static void viddec_pad_added (GstElement * element, GstPad * pad,
gboolean last, RsnDvdBin * dvdbin);
-#if DECODEBIN_AUDIO
-static void auddec_pad_added (GstElement * element, GstPad * pad,
- gboolean last, RsnDvdBin * dvdbin);
-#endif
static void rsn_dvdbin_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
static void rsn_dvdbin_get_property (GObject * object, guint prop_id,
@@ -443,16 +439,6 @@ create_elements (RsnDvdBin * dvdbin)
RSN_TYPE_AUDIOMUNGE, "audiomunge", "Audio output filter"))
return FALSE;
-#if DECODEBIN_AUDIO
- /* Decodebin will throw a missing element message to find a suitable
- * decoder */
- if (!try_create_piece (dvdbin, DVD_ELEM_AUDDEC, "decodebin", 0, "auddec",
- "audio decoder"))
- return FALSE;
-
- g_signal_connect (G_OBJECT (dvdbin->pieces[DVD_ELEM_AUDDEC]),
- "new-decoded-pad", G_CALLBACK (auddec_pad_added), dvdbin);
-#else
if (!try_create_piece (dvdbin, DVD_ELEM_AUDDEC, "a52dec", 0, "auddec",
"audio decoder"))
return FALSE;
@@ -467,7 +453,6 @@ create_elements (RsnDvdBin * dvdbin)
gst_object_unref (sink);
gst_object_unref (src);
src = sink = NULL;
-#endif
src = gst_element_get_static_pad (dvdbin->pieces[DVD_ELEM_AUD_SELECT], "src");
sink = gst_element_get_static_pad (dvdbin->pieces[DVD_ELEM_AUDDEC], "sink");
@@ -740,23 +725,6 @@ viddec_pad_added (GstElement * element, GstPad * pad, gboolean last,
}
}
-#if DECODEBIN_AUDIO
-static void
-auddec_pad_added (GstElement * element, GstPad * pad, gboolean last,
- RsnDvdBin * dvdbin)
-{
- GstPad *out_pad;
-
- GST_DEBUG_OBJECT (dvdbin, "New audio pad: %" GST_PTR_FORMAT, pad);
-
- out_pad =
- gst_element_get_static_pad (dvdbin->pieces[DVD_ELEM_AUD_MUNGE], "sink");
- gst_pad_link (pad, out_pad);
-
- gst_object_unref (out_pad);
-}
-#endif
-
static void
rsn_dvdbin_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)