diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2001-12-23 23:26:50 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2001-12-23 23:26:50 +0000 |
commit | 86d20fdbb1ea1015dc4e11e7fb14b396618fce58 (patch) | |
tree | 8f13e5d6ad7d5886304ce14777b720c9236c402a /gst/avi/gstavidecoder.c | |
parent | 72f78c11d82b86c52b9d832d0f4cf7c9edecee9e (diff) |
Keep different counters for audio and video.
Original commit message from CVS:
Keep different counters for audio and video.
Diffstat (limited to 'gst/avi/gstavidecoder.c')
-rw-r--r-- | gst/avi/gstavidecoder.c | 8 |
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* |