<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
here is my code:<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp; GstElement *pipeline = gst_pipeline_new("gst-test");<BR>&nbsp;&nbsp;&nbsp; GstElement *bin = gst_element_factory_make("playbin", "bin");<BR>&nbsp;&nbsp;&nbsp; GstElement *videosink = gst_element_factory_make("fakesink", "videosink");<BR>&nbsp;&nbsp;&nbsp; GstElement *audiosink = gst_element_factory_make("fakesink", "audiosink");<BR>
&nbsp;&nbsp;&nbsp; if(!pipeline || !bin || !videosink || !audiosink)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;<BR>
&nbsp;&nbsp;&nbsp; g_object_set(G_OBJECT(bin), "video-sink", videosink, NULL);<BR>&nbsp;&nbsp;&nbsp; g_object_set(G_OBJECT(bin), "audio-sink", audiosink, NULL);<BR>
&nbsp;&nbsp;&nbsp; if(!gst_bin_add(GST_BIN(pipeline), bin))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;<BR>
&nbsp;&nbsp;&nbsp; g_object_set(G_OBJECT(bin), "uri", buf, NULL);<BR>
&nbsp;&nbsp;&nbsp; GstBus *bus;<BR>&nbsp;&nbsp;&nbsp; bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));<BR>&nbsp;&nbsp;&nbsp; gst_bus_add_signal_watch(bus);<BR>&nbsp;&nbsp;&nbsp; gst_bus_add_watch(bus, bus_test, NULL);<BR>&nbsp;&nbsp;&nbsp; gst_object_unref(bus);<BR>
&nbsp;&nbsp;&nbsp; gst_element_set_state(pipeline, GST_STATE_PAUSED);<BR>&nbsp;&nbsp;&nbsp; g_loop = g_main_loop_new(NULL, FALSE);<BR>&nbsp;&nbsp;&nbsp; g_main_loop_run(g_loop);<BR><BR>
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.<BR>
&nbsp;<BR>
<BR>&gt; Date: Tue, 22 Jul 2008 12:00:45 +0200<BR>&gt; From: benoit.fouet@purplelabs.com<BR>&gt; To: hashbrown100@hotmail.com<BR>&gt; CC: gstreamer-devel@lists.sourceforge.net<BR>&gt; Subject: Re: [gst-devel] palybin http sources<BR>&gt; <BR>&gt; Hi,<BR>&gt; <BR>&gt; Ash wrote:<BR>&gt; &gt; using playbin with fakesinks, i cant seem to get to the PAUSED state<BR>&gt; &gt; with http sources but it works with file sources...any idea why?<BR>&gt; <BR>&gt; could you elaborate ?<BR>&gt; what is your command line ? what is the code snippet you're using ?<BR>&gt; you really have to help us help you<BR>&gt; <BR>&gt; -- <BR>&gt; Benoit Fouet<BR>&gt; Purple Labs S.A.<BR>&gt; www.purplelabs.com<BR><BR><br /><hr />Time for vacation? WIN what you need. <a href='http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm' target='_new'>Enter Now!</a></body>
</html>