summaryrefslogtreecommitdiff
path: root/gstplay/avi.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2000-08-14 10:16:23 +0000
committerWim Taymans <wim.taymans@gmail.com>2000-08-14 10:16:23 +0000
commit60b626e8208e9a8851e710568e879b4048c1a20e (patch)
treeb9ef23dc15a895e14685cbe63358c62e5201e417 /gstplay/avi.c
parentf0dca903aef1cbf239c252fe8545b36ea53df19a (diff)
glade based gstplay version.
Original commit message from CVS: glade based gstplay version. better avi/mpeg support. nice about dialog :-) Drag and drop should work.
Diffstat (limited to 'gstplay/avi.c')
-rw-r--r--gstplay/avi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gstplay/avi.c b/gstplay/avi.c
index d31c02ee8..034e9aff1 100644
--- a/gstplay/avi.c
+++ b/gstplay/avi.c
@@ -11,6 +11,7 @@ extern GstElement *video_render_queue, *audio_render_queue;
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));
+ gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PAUSED);
// connect to audio pad
//if (0) {
@@ -25,6 +26,7 @@ void avi_new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline)
gst_pad_connect(pad,
gst_element_get_pad(video_render_queue,"sink"));
}
+ gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING);
g_print("\n");
}