From: Edward Hervey Date: Fri, 11 Nov 2005 19:16:35 +0000 (+0000) Subject: examples/seeking/seek.c: Added parse-launch syntax seeking mode for the seeking example. X-Git-Tag: RELEASE-0_9_5~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f844d75470e8488919af1c8c5511fcdbdd6b3d4;p=platform%2Fupstream%2Fgst-plugins-base.git 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" --- diff --git a/ChangeLog b/ChangeLog index c8bf58b26..c9a59121d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-11-11 Edward Hervey + + * 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 * sys/xvimage/xvimagesink.c: diff --git a/examples/seeking/seek.c b/examples/seeking/seek.c index af12228e3..cc6552f84 100644 --- a/examples/seeking/seek.c +++ b/examples/seeking/seek.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}, }; diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index af12228e3..cc6552f84 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.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}, };