Is it possible to use the gst_bin_add_many(...) function after changing
into the PAUSED state. Is the following code valid?
if(some condition)
{
gst_element_set_state (pipeline, GST_STATE_PAUSED);
gst_bin_add_many (GST_BIN (pipeline), source,
decoder, video_sink, text, NULL);
gst_element_set_state (pipeline, GST_STATE_READY);
}
else
{
gst_element_set_state (pipeline, GST_STATE_PAUSED);
gst_bin_add_many (GST_BIN (pipeline), source,
decoder, video_sink, text,*audio_sink,* NULL); // added audio_sink also
gst_element_set_state (pipeline, GST_STATE_READY);
}
g_print ("Setting to PLAYING\n");
gst_element_set_state (pipeline, GST_STATE_PLAYING);
g_print ("Running\n");
g_main_loop_run (loop);
I was trying to play a video first without sound, after some time play
sound also, without interrupting the playing stream. Please tell me, is
it possible to mix an image with a playing stream, after some time the
playback has been started? Or in other words, is video mixing possible
dynamically, without restarting the stream from the beginning?
Thanks and Regards,
Bibin
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel