summaryrefslogtreecommitdiffstats
path: root/gst/matroska/matroska-mux.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-11-16 15:36:48 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-11-16 15:36:48 +0000
commitf441440a43196c4069985ca170c4a51c4cdcf4da (patch)
tree88a7cc40e309b50e89ca40b53f39f8cfafa13f1e /gst/matroska/matroska-mux.c
parent6b16453ab4ae2444f3864110605c12c99d4ccf12 (diff)
gst/matroska/matroska-mux.c: Use GST_DEBUG_FUNCPTR; activate request pad before returning it.
Original commit message from CVS: * gst/matroska/matroska-mux.c: (gst_matroska_mux_class_init), (gst_matroska_mux_request_new_pad): Use GST_DEBUG_FUNCPTR; activate request pad before returning it. * tests/check/elements/matroskamux.c: (setup_src_pad), (setup_sink_pad), (GST_START_TEST): Activate pads before using them.
Diffstat (limited to 'gst/matroska/matroska-mux.c')
-rw-r--r--gst/matroska/matroska-mux.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c
index 688dbebd..a2754108 100644
--- a/gst/matroska/matroska-mux.c
+++ b/gst/matroska/matroska-mux.c
@@ -218,9 +218,12 @@ gst_matroska_mux_class_init (GstMatroskaMuxClass * klass)
"This parameter determines what matroska features can be used.",
1, 2, 1, G_PARAM_READWRITE));
- gstelement_class->change_state = gst_matroska_mux_change_state;
- gstelement_class->request_new_pad = gst_matroska_mux_request_new_pad;
- gstelement_class->release_pad = gst_matroska_mux_release_pad;
+ gstelement_class->change_state =
+ GST_DEBUG_FUNCPTR (gst_matroska_mux_change_state);
+ gstelement_class->request_new_pad =
+ GST_DEBUG_FUNCPTR (gst_matroska_mux_request_new_pad);
+ gstelement_class->release_pad =
+ GST_DEBUG_FUNCPTR (gst_matroska_mux_release_pad);
}
@@ -1128,6 +1131,7 @@ gst_matroska_mux_request_new_pad (GstElement * element,
GST_DEBUG_FUNCPTR (gst_matroska_mux_handle_sink_event));
gst_pad_set_setcaps_function (newpad, setcapsfunc);
+ gst_pad_set_active (newpad, TRUE);
gst_element_add_pad (element, newpad);
return newpad;