}
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);
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);
}
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);
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);