[gst-devel] palybin http sources
hashbrown100 at hotmail.com
Tue Jul 22 19:43:16 CEST 2008
here is my code:
GstElement *pipeline = gst_pipeline_new("gst-test"); GstElement *bin = gst_element_factory_make("playbin", "bin"); GstElement *videosink = gst_element_factory_make("fakesink", "videosink"); GstElement *audiosink = gst_element_factory_make("fakesink", "audiosink");
if(!pipeline || !bin || !videosink || !audiosink) return false;
g_object_set(G_OBJECT(bin), "video-sink", videosink, NULL); g_object_set(G_OBJECT(bin), "audio-sink", audiosink, NULL);
if(!gst_bin_add(GST_BIN(pipeline), bin)) return false;
g_object_set(G_OBJECT(bin), "uri", buf, NULL);
GstBus *bus; bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline)); gst_bus_add_signal_watch(bus); gst_bus_add_watch(bus, bus_test, NULL); gst_object_unref(bus);
gst_element_set_state(pipeline, GST_STATE_PAUSED); g_loop = g_main_loop_new(NULL, FALSE); g_main_loop_run(g_loop);
In my bus_test handler, I checked for STATE CHANGED messages. For File sources, usually after about 4 STATE CHANGED messages, the state is changed from READY TO PAUSED. However with HTTP sources, the source never changes from READY.
> Date: Tue, 22 Jul 2008 12:00:45 +0200> From: benoit.fouet at purplelabs.com> To: hashbrown100 at hotmail.com> CC: gstreamer-devel at lists.sourceforge.net> Subject: Re: [gst-devel] palybin http sources> > Hi,> > Ash wrote:> > using playbin with fakesinks, i cant seem to get to the PAUSED state> > with http sources but it works with file sources...any idea why?> > could you elaborate ?> what is your command line ? what is the code snippet you're using ?> you really have to help us help you> > -- > Benoit Fouet> Purple Labs S.A.> www.purplelabs.com
Time for vacation? WIN what you need- enter now!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel