mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
Make a switch for gnomevfssrc and filesrc
Original commit message from CVS: Make a switch for gnomevfssrc and filesrc
This commit is contained in:
parent
37e7a7c5e2
commit
356aa743dc
1 changed files with 8 additions and 5 deletions
|
@ -13,6 +13,9 @@ static GtkAdjustment *adjustment;
|
||||||
|
|
||||||
static guint update_id;
|
static guint update_id;
|
||||||
|
|
||||||
|
#define SOURCE "gnomevfssrc"
|
||||||
|
//#define SOURCE "filesrc"
|
||||||
|
|
||||||
#define UPDATE_INTERVAL 500
|
#define UPDATE_INTERVAL 500
|
||||||
|
|
||||||
#define THREAD
|
#define THREAD
|
||||||
|
@ -63,7 +66,7 @@ make_parse_pipeline (const gchar *location)
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("app");
|
pipeline = gst_pipeline_new ("app");
|
||||||
|
|
||||||
src = gst_element_factory_make ("filesrc", "src");
|
src = gst_element_factory_make (SOURCE, "src");
|
||||||
parser = gst_element_factory_make ("mpegparse", "parse");
|
parser = gst_element_factory_make ("mpegparse", "parse");
|
||||||
fakesink = gst_element_factory_make ("fakesink", "sink");
|
fakesink = gst_element_factory_make ("fakesink", "sink");
|
||||||
g_object_set (G_OBJECT (fakesink), "sync", TRUE, NULL);
|
g_object_set (G_OBJECT (fakesink), "sync", TRUE, NULL);
|
||||||
|
@ -94,7 +97,7 @@ make_vorbis_pipeline (const gchar *location)
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("app");
|
pipeline = gst_pipeline_new ("app");
|
||||||
|
|
||||||
src = gst_element_factory_make ("filesrc", "src");
|
src = gst_element_factory_make (SOURCE, "src");
|
||||||
decoder = gst_element_factory_make ("vorbisfile", "decoder");
|
decoder = gst_element_factory_make ("vorbisfile", "decoder");
|
||||||
audiosink = gst_element_factory_make ("osssink", "sink");
|
audiosink = gst_element_factory_make ("osssink", "sink");
|
||||||
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
|
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
|
||||||
|
@ -125,7 +128,7 @@ make_mp3_pipeline (const gchar *location)
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("app");
|
pipeline = gst_pipeline_new ("app");
|
||||||
|
|
||||||
src = gst_element_factory_make ("filesrc", "src");
|
src = gst_element_factory_make (SOURCE, "src");
|
||||||
decoder = gst_element_factory_make ("mad", "dec");
|
decoder = gst_element_factory_make ("mad", "dec");
|
||||||
osssink = gst_element_factory_make ("osssink", "sink");
|
osssink = gst_element_factory_make ("osssink", "sink");
|
||||||
|
|
||||||
|
@ -159,7 +162,7 @@ make_avi_pipeline (const gchar *location)
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("app");
|
pipeline = gst_pipeline_new ("app");
|
||||||
|
|
||||||
src = gst_element_factory_make ("filesrc", "src");
|
src = gst_element_factory_make (SOURCE, "src");
|
||||||
g_object_set (G_OBJECT (src), "location", location, NULL);
|
g_object_set (G_OBJECT (src), "location", location, NULL);
|
||||||
|
|
||||||
demux = gst_element_factory_make ("avidemux", "demux");
|
demux = gst_element_factory_make ("avidemux", "demux");
|
||||||
|
@ -228,7 +231,7 @@ make_mpeg_pipeline (const gchar *location)
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("app");
|
pipeline = gst_pipeline_new ("app");
|
||||||
|
|
||||||
src = gst_element_factory_make ("filesrc", "src");
|
src = gst_element_factory_make (SOURCE, "src");
|
||||||
g_object_set (G_OBJECT (src), "location", location, NULL);
|
g_object_set (G_OBJECT (src), "location", location, NULL);
|
||||||
|
|
||||||
demux = gst_element_factory_make ("mpegdemux", "demux");
|
demux = gst_element_factory_make ("mpegdemux", "demux");
|
||||||
|
|
Loading…
Reference in a new issue