From: <wt...@fr...> - 2005-07-19 11:57:40
|
CVS Root: /cvs/gstreamer Module: gst-plugins-base Changes by: wtay Date: Tue Jul 19 2005 04:57:39 PDT Log message: * examples/seeking/seek.c: (make_dv_pipeline), (make_vorbis_theora_pipeline), (query_rates), (query_positions_elems), (query_positions_pads), (do_seek): Make correct DV pipeline. Modified files: . : ChangeLog examples/seeking: seek.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.1791&r2=1.1792 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/examples/seeking/seek.c.diff?r1=1.37&r2=1.38 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v retrieving revision 1.1791 retrieving revision 1.1792 diff -u -d -r1.1791 -r1.1792 --- ChangeLog 18 Jul 2005 15:01:16 -0000 1.1791 +++ ChangeLog 19 Jul 2005 11:57:27 -0000 1.1792 @@ -1,3 +1,10 @@ +2005-07-19 Wim Taymans <wi...@fl...> + + * examples/seeking/seek.c: (make_dv_pipeline), + (make_vorbis_theora_pipeline), (query_rates), + (query_positions_elems), (query_positions_pads), (do_seek): + Make correct DV pipeline. 2005-07-18 Andy Wingo <wi...@po...> * configure.ac (DEFAULT_AUDIOSINK, DEFAULT_AUDIOSRC): Use alsa by Index: seek.c RCS file: /cvs/gstreamer/gst-plugins-base/examples/seeking/seek.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- seek.c 18 Jul 2005 10:53:03 -0000 1.37 +++ seek.c 19 Jul 2005 11:57:27 -0000 1.38 @@ -126,30 +126,37 @@ { GstElement *pipeline; GstElement *src, *decoder, *audiosink, *videosink; + GstElement *a_queue, *v_queue; GstPad *seekable; pipeline = gst_pipeline_new ("app"); src = gst_element_factory_make_or_warn (SOURCE, "src"); decoder = gst_element_factory_make_or_warn ("dvdec", "decoder"); - videosink = gst_element_factory_make_or_warn ("ximagesink", "v_sink"); + v_queue = gst_element_factory_make_or_warn ("queue", "v_queue"); + videosink = gst_element_factory_make_or_warn (VSINK, "v_sink"); + a_queue = gst_element_factory_make_or_warn ("queue", "a_queue"); audiosink = gst_element_factory_make_or_warn (ASINK, "a_sink"); - //g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL); g_object_set (G_OBJECT (src), "location", location, NULL); gst_bin_add (GST_BIN (pipeline), src); gst_bin_add (GST_BIN (pipeline), decoder); + gst_bin_add (GST_BIN (pipeline), a_queue); gst_bin_add (GST_BIN (pipeline), audiosink); + gst_bin_add (GST_BIN (pipeline), v_queue); gst_bin_add (GST_BIN (pipeline), videosink); gst_element_link (src, decoder); - gst_element_link (decoder, audiosink); - gst_element_link (decoder, videosink); + gst_element_link (decoder, a_queue); + gst_element_link (a_queue, audiosink); + gst_element_link (decoder, v_queue); + gst_element_link (v_queue, videosink); seekable = gst_element_get_pad (decoder, "video"); seekable_pads = g_list_prepend (seekable_pads, seekable); rate_pads = g_list_prepend (rate_pads, seekable); seekable = gst_element_get_pad (decoder, "audio"); |