+2007-08-17 Wim Taymans <wim.taymans@gmail.com>
+
+ * tools/gst-launch.c: (event_loop), (main):
+ Don´t try to do any state management when a live pipeline posts
+ buffering messages.
+ Also make the buffering string translatable.
+
2007-08-16 Wim Taymans <wim.taymans@gmail.com>
* gst/gstbin.c: (is_eos), (gst_bin_add_func),
static gboolean caught_error = FALSE;
static gboolean tags = FALSE;
static gboolean messages = FALSE;
+static gboolean is_live = FALSE;
#ifndef GST_DISABLE_LOADSAVE
gint percent;
gst_message_parse_buffering (message, &percent);
- fprintf (stderr, "buffering... %d \r", percent);
+ fprintf (stderr, _("buffering... %d \r"), percent);
+
+ /* no state management needed for live pipelines */
+ if (is_live)
+ break;
if (percent == 100) {
/* a 100% message means buffering is done */
goto end;
case GST_STATE_CHANGE_NO_PREROLL:
fprintf (stderr, _("Pipeline is live and does not need PREROLL ...\n"));
+ is_live = TRUE;
break;
case GST_STATE_CHANGE_ASYNC:
fprintf (stderr, _("Pipeline is PREROLLING ...\n"));