From 9a7e2b133bc7c852b60fbb2538050a76c087d7be Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 6 Mar 2002 16:17:14 +0000 Subject: [PATCH] Bugfix - it now actually works (I think) Original commit message from CVS: Bugfix - it now actually works (I think) --- gst/avi/gstavimux.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index 79285993ad..b48fe8582a 100644 --- a/gst/avi/gstavimux.c +++ b/gst/avi/gstavimux.c @@ -77,7 +77,7 @@ GST_PADTEMPLATE_FACTORY (src_factory, ) GST_PADTEMPLATE_FACTORY (video_sink_factory, - "video_%02d", + "video_%d", GST_PAD_SINK, GST_PAD_REQUEST, GST_CAPS_NEW ( @@ -124,7 +124,7 @@ GST_PADTEMPLATE_FACTORY (video_sink_factory, ) GST_PADTEMPLATE_FACTORY (audio_sink_factory, - "audio_%02d", + "audio_%d", GST_PAD_SINK, GST_PAD_REQUEST, GST_CAPS_NEW ( @@ -362,7 +362,6 @@ gst_avimux_sinkconnect (GstPad *pad, GstCaps *vscaps) } else if (!strcmp (mimetype, "audio/raw")) { -printf("WE HAVE AUDIO\n"); avimux->auds.format = GST_RIFF_WAVE_FORMAT_PCM; avimux->auds.channels = gst_caps_get_int (caps, "channels"); avimux->auds.rate = gst_caps_get_int (caps, "rate"); @@ -394,7 +393,7 @@ gst_avimux_request_new_pad (GstElement *element, GstAviMux *avimux; gchar *name = NULL; GstPad *newpad; - + g_return_val_if_fail (templ != NULL, NULL); if (templ->direction != GST_PAD_SINK) { @@ -407,7 +406,6 @@ gst_avimux_request_new_pad (GstElement *element, avimux = GST_AVIMUX (element); if (templ == GST_PADTEMPLATE_GET (audio_sink_factory)) { -printf("AUDIOPAD REQUESTED\n"); g_return_val_if_fail(avimux->num_audio_pads == 0 /*< MAX_NUM_AUDIO_PADS*/, NULL); name = g_strdup_printf ("audio_%02d", avimux->num_audio_pads); newpad = gst_pad_new_from_template (templ, name); @@ -417,7 +415,6 @@ printf("AUDIOPAD REQUESTED\n"); avimux->num_audio_pads++; } else if (templ == GST_PADTEMPLATE_GET (video_sink_factory)) { -printf("VIDEOPAD %d REQUESTED\n", avimux->num_video_pads); g_return_val_if_fail(avimux->num_video_pads == 0 /*< MAX_NUM_VIDEO_PADS*/, NULL); name = g_strdup_printf ("video_%02d", avimux->num_video_pads); newpad = gst_pad_new_from_template (templ, name);