<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Iesx,<br>
<br>
I guess that you have taken the helloworld example as a basis for
your code. In the original, there was a call to g_main_loop_run
which you have omitted.<br>
<br>
Ian<br>
<br>
<div class="moz-cite-prefix">On 01/01/2013 11:37, Tim-Philipp Müller
wrote:<br>
</div>
<blockquote cite="mid:1357040271.16140.2.camel@zingle" type="cite">
<pre wrap="">On Mon, 2012-12-31 at 22:45 -0800, iesx wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Could you please help me to solve this problem?
I tried so many times but still had the same problem.
The result exited with code 0 like below.
/home/iesx/Desktop/imageOnly/imageonly exited with code 0
</pre>
</blockquote>
<pre wrap="">
And what is the problem exactly?
</pre>
<blockquote type="cite">
<pre wrap=""> /* Set the pipeline to "playing" state*/
g_print ("Now playing: \n");
gst_element_set_state (pipeline, GST_STATE_PLAYING);
/* Out of the main loop, clean up nicely */
g_print ("Returned, stopping playback\n");
gst_element_set_state (pipeline, GST_STATE_NULL);
g_print ("Deleting pipeline\n");
gst_object_unref (GST_OBJECT (pipeline));
return 0;
}
</pre>
</blockquote>
<pre wrap="">
You set the pipeline to PLAYING state (which will happen asynchronously
in other threads), then set it immediately back to NULL state, clean it
up, and exit.
That's probably not what you intended to do?
Note the left-over(?) comment about the main loop. You probably want to
wait/sleep/do something else after setting the pipeline to PLAYING.
Cheers
-Tim
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
--<br>
Ian Davidson<br>
<i>239 Streetsbrook Road, Solihull, West Midlands, B91 1HE</i><br>
--<br>
Facts used in this message may or may not reflect an underlying
objective reality. Facts are supplied for personal use only.<br>
Recipients quoting supplied information do so at their own risk.
Facts supplied may vary in whole or part from widely accepted
standards.<br>
While painstakingly researched, facts may or may not be indicative
of actually occurring events or natural phenomena.<br>
The author accepts no responsibility for personal loss or injury
resulting from memorisation and subsequent use.
</div>
</body>
</html>