mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
examples/seeking/seek.c: Added parse-launch syntax seeking mode for the seeking example.
Original commit message from CVS: * examples/seeking/seek.c: (make_parselaunch_pipeline): Added parse-launch syntax seeking mode for the seeking example. This should help stress-test even more cases. Ex usage : ./seek 15 "filesrc location=uranus.avi ! decodebin ! xvimagesink"
This commit is contained in:
parent
e6ef73471b
commit
6f844d7547
3 changed files with 39 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-11-11 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* examples/seeking/seek.c: (make_parselaunch_pipeline):
|
||||
Added parse-launch syntax seeking mode for the seeking example.
|
||||
This should help stress-test even more cases.
|
||||
Ex usage : ./seek 15 "filesrc location=uranus.avi ! decodebin ! xvimagesink"
|
||||
|
||||
2005-11-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* sys/xvimage/xvimagesink.c:
|
||||
|
|
|
@ -801,6 +801,21 @@ make_playerbin_pipeline (const gchar * location)
|
|||
return player;
|
||||
}
|
||||
|
||||
static GstElement *
|
||||
make_parselaunch_pipeline (const gchar * description)
|
||||
{
|
||||
GstElement *pipeline;
|
||||
GError *error;
|
||||
|
||||
pipeline = gst_parse_launch (description, &error);
|
||||
|
||||
seekable_elements = g_list_prepend (seekable_elements, pipeline);
|
||||
|
||||
elem_seek = TRUE;
|
||||
|
||||
return pipeline;
|
||||
}
|
||||
|
||||
static gchar *
|
||||
format_value (GtkScale * scale, gdouble value)
|
||||
{
|
||||
|
@ -1221,6 +1236,7 @@ static Pipeline pipelines[] = {
|
|||
{"dv", make_dv_pipeline},
|
||||
{"mpeg1nothreads", make_mpegnt_pipeline},
|
||||
{"playerbin", make_playerbin_pipeline},
|
||||
{"parse-launch", make_parselaunch_pipeline},
|
||||
{NULL, NULL},
|
||||
};
|
||||
|
||||
|
|
|
@ -801,6 +801,21 @@ make_playerbin_pipeline (const gchar * location)
|
|||
return player;
|
||||
}
|
||||
|
||||
static GstElement *
|
||||
make_parselaunch_pipeline (const gchar * description)
|
||||
{
|
||||
GstElement *pipeline;
|
||||
GError *error;
|
||||
|
||||
pipeline = gst_parse_launch (description, &error);
|
||||
|
||||
seekable_elements = g_list_prepend (seekable_elements, pipeline);
|
||||
|
||||
elem_seek = TRUE;
|
||||
|
||||
return pipeline;
|
||||
}
|
||||
|
||||
static gchar *
|
||||
format_value (GtkScale * scale, gdouble value)
|
||||
{
|
||||
|
@ -1221,6 +1236,7 @@ static Pipeline pipelines[] = {
|
|||
{"dv", make_dv_pipeline},
|
||||
{"mpeg1nothreads", make_mpegnt_pipeline},
|
||||
{"playerbin", make_playerbin_pipeline},
|
||||
{"parse-launch", make_parselaunch_pipeline},
|
||||
{NULL, NULL},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue