~ubuntu-branches/ubuntu/saucy/gstreamer0.10/saucy

« back to all changes in this revision

Viewing changes to tools/gst-launch.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2011-12-11 18:52:12 UTC
  • mfrom: (32.1.14 experimental)
  • Revision ID: package-import@ubuntu.com-20111211185212-3k215ps4qtyz2qa5
Tags: 0.10.35.2-1
* New upstream pre-release:
  + debian/control.in:
    - Build-depend on GLib >= 2.24.
  + debian/patches/99_ltmain_as-needed.patch:
    - Refreshed to apply cleanly again.
  + debian/libgstreamer.symbols:
    - Update symbols file with new API.
* debian/rules:
  + Remove all dependency_libs from the .la files (Closes: #633319).
* debian/control.in:
  + Put GI package into section introspection.
* debian/compat,
  debian/control.in,
  debian/gir1.2-gstreamer.install,
  debian/libgstreamer-dev.install,
  debian/libgstreamer.install,
  debian/patches/79_multiarch-backwards-compat.patch,
  debian/patches/80_ia32-hack.patch,
  debian/rules:
  + Transition package to multi-arch (Closes: #647481).
    Patch taken from the Ubuntu package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
  }
404
404
}
405
405
 
 
406
/* Kids, use the functions from libgstpbutils in gst-plugins-base in your
 
407
 * own code (we can't do that here because it would introduce a circular
 
408
 * dependency) */
 
409
static gboolean
 
410
gst_is_missing_plugin_message (GstMessage * msg)
 
411
{
 
412
  if (GST_MESSAGE_TYPE (msg) != GST_MESSAGE_ELEMENT || msg->structure == NULL)
 
413
    return FALSE;
 
414
 
 
415
  return gst_structure_has_name (msg->structure, "missing-plugin");
 
416
}
 
417
 
 
418
static const gchar *
 
419
gst_missing_plugin_message_get_description (GstMessage * msg)
 
420
{
 
421
  return gst_structure_get_string (msg->structure, "name");
 
422
}
 
423
 
406
424
static void
407
425
print_error_message (GstMessage * msg)
408
426
{
821
839
          res = ELR_INTERRUPT;
822
840
          goto exit;
823
841
        }
 
842
        break;
 
843
      }
 
844
      case GST_MESSAGE_ELEMENT:{
 
845
        if (gst_is_missing_plugin_message (message)) {
 
846
          const gchar *desc;
 
847
 
 
848
          desc = gst_missing_plugin_message_get_description (message);
 
849
          PRINT (_("Missing element: %s\n"), desc ? desc : "(no description)");
 
850
        }
 
851
        break;
824
852
      }
825
853
      default:
826
854
        /* just be quiet by default */
943
971
  textdomain (GETTEXT_PACKAGE);
944
972
#endif
945
973
 
 
974
#if !GLIB_CHECK_VERSION (2, 31, 0)
946
975
  g_thread_init (NULL);
 
976
#endif
947
977
 
948
978
  gst_tools_set_prgname ("gst-launch");
949
979