[gstreamer-bugs] [Bug 424157] Provide gst_play_file
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Thu Mar 29 15:34:36 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
------- Comment #4 from David Schleef 2007-03-29 22:32 UTC -------
Ok, I misunderstood what you said in #1, then. I agree, a dirt simple audio
player would be easy and beneficial for anyone trying to migrate away from
audiofile, etc.
Main loop integration for such a case is fairly easy (in pseudocode):
gst_play_audio_file() {
set up pipeline
add idle handler to main loop
set pipeline to PLAYING
return object
}
idle_handler() {
get bus message
handle bus message
if in error state, fire error signal
if done, fire done signal
if not done, re-add idle handler
}
In this case, gst_play_audio_file() returns immediately, and the app can wait
for the "done" signal if it wants. Or, there could be a separate waiting
version.
--
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