summaryrefslogtreecommitdiffstats
path: root/ext/dts
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-03-02 18:24:14 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-03-02 18:24:14 +0000
commit6ca3c959b6d13112e2e7ff100e36d8a11a26f20e (patch)
treea9187c79be45f3c6d18a5f0e804d0c7a5cd0a24a /ext/dts
parentc8e4999eb02d68383f9c59aedd58f8b977969afa (diff)
downloadgst-plugins-bad-6ca3c959b6d13112e2e7ff100e36d8a11a26f20e.tar.gz
gst-plugins-bad-6ca3c959b6d13112e2e7ff100e36d8a11a26f20e.tar.bz2
gst-plugins-bad-6ca3c959b6d13112e2e7ff100e36d8a11a26f20e.zip
ext/dts/gstdtsdec.c: A few small clean-ups.
Original commit message from CVS: * ext/dts/gstdtsdec.c: (gst_dtsdec_init), (gst_dtsdec_sink_event): A few small clean-ups. * gst/real/gstrealaudiodec.c: (gst_real_audio_dec_setcaps): More debug output for failure cases.
Diffstat (limited to 'ext/dts')
-rw-r--r--ext/dts/gstdtsdec.c30
1 files changed, 5 insertions, 25 deletions
diff --git a/ext/dts/gstdtsdec.c b/ext/dts/gstdtsdec.c
index 642cdde3..aada01f7 100644
--- a/ext/dts/gstdtsdec.c
+++ b/ext/dts/gstdtsdec.c
@@ -47,15 +47,8 @@ GST_ELEMENT_DETAILS ("DTS audio decoder",
enum
{
- /* FILL ME */
- LAST_SIGNAL
-};
-
-enum
-{
ARG_0,
ARG_DRC
- /* FILL ME */
};
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
@@ -153,18 +146,14 @@ gst_dtsdec_class_init (GstDtsDecClass * klass)
static void
gst_dtsdec_init (GstDtsDec * dtsdec, GstDtsDecClass * g_class)
{
- /* create the sink and src pads */
- dtsdec->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&sink_factory), "sink");
- gst_pad_set_chain_function (dtsdec->sinkpad, gst_dtsdec_chain);
+ dtsdec->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink");
+ gst_pad_set_chain_function (dtsdec->sinkpad,
+ GST_DEBUG_FUNCPTR (gst_dtsdec_chain));
gst_pad_set_event_function (dtsdec->sinkpad,
GST_DEBUG_FUNCPTR (gst_dtsdec_sink_event));
gst_element_add_pad (GST_ELEMENT (dtsdec), dtsdec->sinkpad);
- dtsdec->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&src_factory), "src");
+ dtsdec->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
gst_pad_use_fixed_caps (dtsdec->srcpad);
gst_element_add_pad (GST_ELEMENT (dtsdec), dtsdec->srcpad);
@@ -308,8 +297,7 @@ gst_dtsdec_sink_event (GstPad * pad, GstEvent * event)
GstDtsDec *dtsdec = GST_DTSDEC (gst_pad_get_parent (pad));
gboolean ret = FALSE;
- GST_LOG ("Handling event of type %d timestamp %llu", GST_EVENT_TYPE (event),
- GST_EVENT_TIMESTAMP (event));
+ GST_LOG_OBJECT (dtsdec, "%s event", GST_EVENT_TYPE_NAME (event));
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_NEWSEGMENT:{
@@ -331,14 +319,6 @@ gst_dtsdec_sink_event (GstPad * pad, GstEvent * event)
ret = gst_pad_event_default (pad, event);
break;
}
- case GST_EVENT_TAG:
- case GST_EVENT_EOS:{
- ret = gst_pad_event_default (pad, event);
- break;
- }
- case GST_EVENT_FLUSH_START:
- ret = gst_pad_event_default (pad, event);
- break;
case GST_EVENT_FLUSH_STOP:
if (dtsdec->cache) {
gst_buffer_unref (dtsdec->cache);