summaryrefslogtreecommitdiffstats
path: root/gst/avi/gstavidecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/avi/gstavidecoder.c')
-rw-r--r--gst/avi/gstavidecoder.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gst/avi/gstavidecoder.c b/gst/avi/gstavidecoder.c
index e9210a75..85024139 100644
--- a/gst/avi/gstavidecoder.c
+++ b/gst/avi/gstavidecoder.c
@@ -194,17 +194,17 @@ gst_avi_decoder_new_pad (GstElement *element, GstPad *pad, GstAviDecoder *avi_de
if (!strcmp (format, "strf_vids")) {
targetcaps = gst_padtemplate_get_caps (GST_PADTEMPLATE_GET (src_video_templ));
media_type = AVI_TYPE_VIDEO;
- gpadname = g_strdup_printf ("video_%02d", avi_decoder->count);
+ gpadname = g_strdup_printf ("video_%02d", avi_decoder->video_count++);
}
else if (!strcmp (format, "strf_auds")) {
targetcaps = gst_padtemplate_get_caps (GST_PADTEMPLATE_GET (src_audio_templ));
media_type = AVI_TYPE_AUDIO;
- gpadname = g_strdup_printf ("audio_%02d", avi_decoder->count);
+ gpadname = g_strdup_printf ("audio_%02d", avi_decoder->audio_count++);
}
else if (!strcmp (format, "strf_iavs")) {
targetcaps = gst_padtemplate_get_caps (GST_PADTEMPLATE_GET (src_video_templ));
media_type = AVI_TYPE_VIDEO;
- gpadname = g_strdup_printf ("video_%02d", avi_decoder->count);
+ gpadname = g_strdup_printf ("video_%02d", avi_decoder->video_count++);
}
else {
g_assert_not_reached ();
@@ -293,6 +293,8 @@ gst_avi_decoder_init (GstAviDecoder *avi_decoder)
}
avi_decoder->count = 0;
+ avi_decoder->audio_count = 0;
+ avi_decoder->video_count = 0;
}
static GstCaps*