remove user_data pad to fix MPEG video playback

Original commit message from CVS:
remove user_data pad to fix MPEG video playback
This commit is contained in:
Thomas Vander Stichele 2004-03-08 18:13:19 +00:00
parent d0dec4988b
commit 4846708cdd
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2004-03-08 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_base_init),
(gst_mpeg2dec_init):
remove the user_data pad for now, because it is being used in
fixating causing MPEG playback to fixate on 1000 Hz for playback.
If someone knows how to fix this properly, please do.
2004-03-08 Thomas Vander Stichele <thomas at apestaart dot org>
* sys/oss/gstosssink.c: (gst_osssink_get_delay),

View file

@ -74,6 +74,7 @@ GST_STATIC_PAD_TEMPLATE (
"25.0, 29.970030, 30.0, 50.0, 59.940060, 60.0 }")
);
/*
static GstStaticPadTemplate user_data_template_factory =
GST_STATIC_PAD_TEMPLATE (
"user_data",
@ -81,6 +82,7 @@ GST_STATIC_PAD_TEMPLATE (
GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY
);
*/
static GstStaticPadTemplate sink_template_factory =
GST_STATIC_PAD_TEMPLATE (
@ -160,8 +162,9 @@ gst_mpeg2dec_base_init (gpointer g_class)
gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&src_template_factory));
gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sink_template_factory));
/*
gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&user_data_template_factory));
*/
gst_element_class_set_details (element_class, &gst_mpeg2dec_details);
}
@ -207,9 +210,11 @@ gst_mpeg2dec_init (GstMpeg2dec *mpeg2dec)
gst_pad_set_query_function (mpeg2dec->srcpad, GST_DEBUG_FUNCPTR (gst_mpeg2dec_src_query));
gst_pad_set_convert_function (mpeg2dec->srcpad, GST_DEBUG_FUNCPTR (gst_mpeg2dec_convert_src));
/*
mpeg2dec->userdatapad = gst_pad_new_from_template (
gst_static_pad_template_get (&user_data_template_factory), "user_data");
gst_element_add_pad (GST_ELEMENT (mpeg2dec), mpeg2dec->userdatapad);
*/
/* initialize the mpeg2dec acceleration */
mpeg2_accel (MPEG2_ACCEL_DETECT);
@ -637,6 +642,7 @@ gst_mpeg2dec_chain (GstPad *pad, GstData *_data)
/*
* FIXME: should pass more information such as state the user data is from
*/
/*
if (info->user_data_len > 0) {
if (GST_PAD_IS_USABLE (mpeg2dec->userdatapad)) {
GstBuffer *udbuf = gst_buffer_new_and_alloc (info->user_data_len);
@ -646,6 +652,7 @@ gst_mpeg2dec_chain (GstPad *pad, GstData *_data)
gst_pad_push (mpeg2dec->userdatapad, GST_DATA (udbuf));
}
}
*/
}
exit:
gst_buffer_unref(buf);