[Bug 424143] Hello world too complicated

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Mar 7 07:17:12 PST 2011

  GStreamer | documentation | 0.10.x

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
                 CC|                            |t.i.m at zen.co.uk

--- Comment #5 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2011-03-07 15:17:08 UTC ---
Looks good to me. Niggles:

 - argv[1] needs to be a URI, but the help string
   says 'media file'. Maybe add some kind of

   if (gst_uri_is_valid (argv[1]))
     uri = g_strdup (argv[1]);
     uri = gst_filename_to_uri (argv[1], NULL);

   (this is also something that trips up
   people quite a lot, so might be worth
   having in a hello world).

 - wonder if for a first version it would be even
   better to get rid of the main loop, and
   just do a

   while ((msg = gst_bus_*()) {

   instead. (Many people don't understand
   main loops, or are confused by them).

Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the gstreamer-bugs mailing list