[gstreamer-bugs] [Bug 424157] New: Provide gst_play_file

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Mar 29 08:32:15 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=424157.

  GStreamer | gstreamer (core) | Ver: 0.10.x
           Summary: Provide gst_play_file
           Product: GStreamer
           Version: 0.10.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: mathias.hasselmann at gmx.de
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


GStreamer often is called too complicated and heavy for simple usage.
Considering that there is this great playbin element, I believe this assumption
is wrong. All that GStreamer needs for overcoming this wrong picture is a
simple API like this:

gboolean 
gst_play_file (const gchar *filename, GError **error);

Filename would be the absolute path to a file GStreamer can handle. The
function returns TRUE on success and FALSE on failure. Having such a function,
hello-gst.c would be reduced to this trivial snipped of code:

int main (int argc, char *argv[]) {
    GError *error = NULL;

    gst_init (&argc, &argv);

    if (argc < 2) {
        g_print ("Usage: %s FILENAME\n", argv[0]);
        return 1;
    }

    if (!gst_play_file (argv[1], &error)) {
        g_warning (error ? error->message : "Unknown error");
        g_clear_error (&error);
        return 1;
    }

    return 0;
}

My assumption and hope is, that this function would greatly extend usage of
GStreamer as nobody could argue any more, GStreamer would be too complicated
for his/her simple application.

See also: Bug 424143, Project Ridley.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=424157.




More information about the Gstreamer-bugs mailing list