summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/real/gstrealaudiodec.c14
-rw-r--r--gst/real/gstrealvideodec.c17
2 files changed, 17 insertions, 14 deletions
diff --git a/gst/real/gstrealaudiodec.c b/gst/real/gstrealaudiodec.c
index f2bbdc37..9e167578 100644
--- a/gst/real/gstrealaudiodec.c
+++ b/gst/real/gstrealaudiodec.c
@@ -319,13 +319,15 @@ could_not_set_caps:
static void
gst_real_audio_dec_init (GstRealAudioDec * dec, GstRealAudioDecClass * klass)
{
- dec->snk =
- gst_pad_new_from_template (gst_static_pad_template_get (&snk_t), "sink");
- gst_pad_set_setcaps_function (dec->snk, gst_real_audio_dec_setcaps);
- gst_pad_set_chain_function (dec->snk, gst_real_audio_dec_chain);
+ dec->snk = gst_pad_new_from_static_template (&snk_t, "sink");
+ gst_pad_set_setcaps_function (dec->snk,
+ GST_DEBUG_FUNCPTR (gst_real_audio_dec_setcaps));
+ gst_pad_set_chain_function (dec->snk,
+ GST_DEBUG_FUNCPTR (gst_real_audio_dec_chain));
gst_element_add_pad (GST_ELEMENT (dec), dec->snk);
- dec->src =
- gst_pad_new_from_template (gst_static_pad_template_get (&src_t), "src");
+
+ dec->src = gst_pad_new_from_static_template (&src_t, "src");
+ gst_pad_use_fixed_caps (dec->src);
gst_element_add_pad (GST_ELEMENT (dec), dec->src);
}
diff --git a/gst/real/gstrealvideodec.c b/gst/real/gstrealvideodec.c
index 882e9d8c..0e4c17f1 100644
--- a/gst/real/gstrealvideodec.c
+++ b/gst/real/gstrealvideodec.c
@@ -743,19 +743,20 @@ close_library (GstRealVideoDecHooks hooks)
static void
gst_real_video_dec_init (GstRealVideoDec * dec, GstRealVideoDecClass * klass)
{
- dec->snk =
- gst_pad_new_from_template (gst_static_pad_template_get (&snk_t), "sink");
- gst_pad_set_setcaps_function (dec->snk, gst_real_video_dec_setcaps);
- gst_pad_set_chain_function (dec->snk, gst_real_video_dec_chain);
+ dec->snk = gst_pad_new_from_static_template (&snk_t, "sink");
+ gst_pad_set_setcaps_function (dec->snk,
+ GST_DEBUG_FUNCPTR (gst_real_video_dec_setcaps));
+ gst_pad_set_chain_function (dec->snk,
+ GST_DEBUG_FUNCPTR (gst_real_video_dec_chain));
gst_pad_set_activatepush_function (dec->snk,
- gst_real_video_dec_activate_push);
+ GST_DEBUG_FUNCPTR (gst_real_video_dec_activate_push));
gst_element_add_pad (GST_ELEMENT (dec), dec->snk);
- dec->src =
- gst_pad_new_from_template (gst_static_pad_template_get (&src_t), "src");
+ dec->src = gst_pad_new_from_static_template (&src_t, "src");
+ gst_pad_use_fixed_caps (dec->src);
gst_element_add_pad (GST_ELEMENT (dec), dec->src);
- dec->adapter = g_object_new (GST_TYPE_ADAPTER, NULL);
+ dec->adapter = gst_adapter_new ();
}
static void