From 6c7b28161ca6da4c088a44eaa03fe66980f17e9c Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sun, 16 Jun 2013 19:10:18 -0400 Subject: [PATCH] ges-launch: Remove xptv formatter related code It is not usefull anymore --- tools/ges-launch.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/tools/ges-launch.c b/tools/ges-launch.c index 7c5df56..924e22c 100644 --- a/tools/ges-launch.c +++ b/tools/ges-launch.c @@ -34,8 +34,6 @@ static guint repeat = 0; static GESTimelinePipeline *pipeline = NULL; static gboolean seenerrors = FALSE; -void load_project (gchar * uri); - static gchar * ensure_uri (gchar * location) { @@ -383,31 +381,6 @@ print_pattern_list (void) print_enum (GES_VIDEO_TEST_PATTERN_TYPE); } -void -load_project (gchar * uri) -{ - GESFormatter *formatter; - GESTimeline *timeline; - GMainLoop *mainloop; - GESTimelinePipeline *pipeline; - GstBus *bus; - - formatter = GES_FORMATTER (ges_pitivi_formatter_new ()); - timeline = ges_timeline_new (); - pipeline = ges_timeline_pipeline_new (); - bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); - mainloop = g_main_loop_new (NULL, FALSE); - - ges_timeline_pipeline_add_timeline (pipeline, timeline); - ges_formatter_load_from_uri (formatter, timeline, uri, NULL); - ges_timeline_pipeline_set_mode (pipeline, TIMELINE_MODE_PREVIEW_VIDEO); - - gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING); - gst_bus_add_signal_watch (bus); - g_signal_connect (bus, "message", G_CALLBACK (bus_message_cb), mainloop); - g_main_loop_run (mainloop); -} - int main (int argc, gchar ** argv) { @@ -428,7 +401,6 @@ main (int argc, gchar ** argv) static gboolean verbose = FALSE; gchar *save_path = NULL; gchar *load_path = NULL; - gchar *project_path = NULL; GOptionEntry options[] = { {"thumbnail", 'm', 0.0, G_OPTION_ARG_DOUBLE, &thumbinterval, "Take thumbnails every n seconds (saved in current directory)", "N"}, @@ -464,8 +436,6 @@ main (int argc, gchar ** argv) "Output status information and property notifications", NULL}, {"exclude", 'X', 0, G_OPTION_ARG_NONE, &exclude_args, "Do not output status information of TYPE", "TYPE1,TYPE2,..."}, - {"load-xptv", 'y', 0, G_OPTION_ARG_STRING, &project_path, - "Load xptv project from file for previewing", ""}, {NULL} }; GOptionContext *ctx; @@ -514,10 +484,6 @@ main (int argc, gchar ** argv) exit (0); } - if (project_path) { - load_project (project_path); - exit (0); - } if (((!load_path && (argc < 4))) || (outputuri && (!render && !smartrender))) { g_printf ("%s", g_option_context_get_help (ctx, TRUE, NULL)); g_option_context_free (ctx); -- 2.7.4