From b0e9998114fafbbec8d6c12270b3bc577d60380c Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Tue, 28 Jan 2003 20:02:14 +0000 Subject: DOH! (yes, I'm a moron) Original commit message from CVS: DOH! (yes, I'm a moron) --- gst/avi/gstavimux.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gst/avi/gstavimux.c') diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index d46051ae..bcb7f42d 100644 --- a/gst/avi/gstavimux.c +++ b/gst/avi/gstavimux.c @@ -442,9 +442,9 @@ done: } static void -gst_avimux_pad_connect (GstPad *pad, - GstPad *peer, - gpointer data) +gst_avimux_pad_link (GstPad *pad, + GstPad *peer, + gpointer data) { GstAviMux *avimux = GST_AVIMUX(data); const gchar *padname = gst_pad_get_name (pad); @@ -468,8 +468,8 @@ gst_avimux_pad_connect (GstPad *pad, static void gst_avimux_pad_unlink (GstPad *pad, - GstPad *peer, - gpointer data) + GstPad *peer, + gpointer data) { GstAviMux *avimux = GST_AVIMUX(data); const gchar *padname = gst_pad_get_name (pad); @@ -531,7 +531,7 @@ gst_avimux_request_new_pad (GstElement *element, } g_signal_connect(newpad, "linked", - G_CALLBACK(gst_avimux_pad_connect), (gpointer)avimux); + G_CALLBACK(gst_avimux_pad_link), (gpointer)avimux); g_signal_connect(newpad, "unlinked", G_CALLBACK(gst_avimux_pad_unlink), (gpointer)avimux); gst_pad_set_link_function (newpad, gst_avimux_sinkconnect); @@ -925,7 +925,7 @@ gst_avimux_start_file (GstAviMux *avimux) avimux->idx = NULL; /* header */ - avimux->avi_hdr.streams = avimux->video_pad_connected?1:0 + avimux->audio_pad_connected?1:0; + avimux->avi_hdr.streams = (avimux->video_pad_connected?1:0) + (avimux->audio_pad_connected?1:0); avimux->is_bigfile = FALSE; header = gst_avimux_riff_get_avi_header(avimux); -- cgit