2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gnome.h>
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2000-07-15 12:06:18 +00:00
|
|
|
extern GstElement *video_render_queue, *audio_render_queue;
|
2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
void avi_new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline)
|
|
|
|
{
|
|
|
|
g_print("***** a new pad %s was created\n", gst_pad_get_name(pad));
|
|
|
|
|
|
|
|
// connect to audio pad
|
|
|
|
//if (0) {
|
|
|
|
if (strncmp(gst_pad_get_name(pad), "audio_", 6) == 0) {
|
|
|
|
|
|
|
|
gst_pad_connect(pad,
|
2000-07-15 12:06:18 +00:00
|
|
|
gst_element_get_pad(audio_render_queue,"sink"));
|
2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
} else if (strncmp(gst_pad_get_name(pad), "video_", 6) == 0) {
|
2000-07-15 12:06:18 +00:00
|
|
|
//} else if (0) {
|
2000-06-25 21:38:00 +00:00
|
|
|
|
|
|
|
gst_pad_connect(pad,
|
2000-07-15 12:06:18 +00:00
|
|
|
gst_element_get_pad(video_render_queue,"sink"));
|
2000-06-25 21:38:00 +00:00
|
|
|
}
|
|
|
|
g_print("\n");
|
|
|
|
}
|
|
|
|
|