<div dir="ltr"><div>Thanks Sebastian,<br><br></div>I was able to handle the request.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 December 2013 21:40, Sebastian Dröge-3 [via GStreamer-devel] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4663801&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">

        On Mo, 2013-12-02 at 07:37 -0800, sathish wrote:
<div><div><div class='shrinkable-quote'><br>> Thanks for the reply Sebastian
<br>> 
<br>> So Phonon doesnt handle it but GSTREAMER handles it.
<br>> 
<br>> Hence to do a test, I left QT - Phonon application. Instead I am using a
<br>> gstreamer media player code available in the gstreamer documentation. Name
<br>> of the file is Basic-tutorial-5.c.
<br>> 
<br>> In this, I am initiating a CORK request.. I have pasted the part of the
<br>> code in which messages on the bus are handled.
<br>> 
<br>>  /* Instruct the bus to emit signals for each received message, and connect
<br>> to the interesting signals */
<br>> 
<br>>   bus = gst_element_get_bus (data.playbin2);
<br>>   gst_bus_add_signal_watch (bus);
<br>>   g_signal_connect (G_OBJECT (bus), "message::error", (GCallback)error_cb,
<br>> &data);
<br>>   g_signal_connect (G_OBJECT (bus), "message::eos", (GCallback)eos_cb,
<br>> &data);
<br>>   g_signal_connect (G_OBJECT (bus), "message::state-changed",
<br>> (GCallback)state_changed_cb, &data);
<br>>   g_signal_connect (G_OBJECT (bus), "message::application",
<br>> (GCallback)application_cb, &data);
<br>>   gst_object_unref (bus);
<br>> 
<br>> My question is how should I handle this in case of the following code
<br>> pasted below
<br>> 
<br>> gst_element_post_message (GST_ELEMENT_CAST (psink),
<br>> > >         gst_message_new_request_state (GST_OBJECT_CAST (psink),
<br>> > >             GST_STATE_PAUSED));
<br>> 
<br>> How would I able to find the bus message. Like in case of End of Stream, we
<br>> get "message::eos", what would it be for the above piece of code ??
<br>> 
<br>> Would I get "GST_STATE_PAUSED" on the bus or something else ??
</div></div></div></div>You would get a GST_MESSAGE_REQUEST_STATE on the bus, and you could
</div>parse the requested state from it via gst_message_parse_request_state().
<br>You would then call gst_element_set_state() on the pipeline for that
<br><div class="im">state.
<br><br>-- 
<br>Sebastian Dröge <<a href="http://user/SendEmail.jtp?type=node&node=4663797&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>>
<br>Centricular Ltd - <a href="http://www.centricular.com" rel="nofollow" link="external" target="_blank">http://www.centricular.com</a><br>Expertise, Straight from the Source
<br><br>_______________________________________________
<br>gstreamer-devel mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4663797&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><div><br><img> <strong>signature.asc</strong> (985 bytes) <a href="http://gstreamer-devel.966125.n4.nabble.com/attachment/4663797/0/signature.asc" rel="nofollow" link="external" target="_blank">Download Attachment</a></div>


        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://gstreamer-devel.966125.n4.nabble.com/Flow-of-PAUSE-request-from-gstreamer-to-upper-QT-application-tp4663723p4663797.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/Flow-of-PAUSE-request-from-gstreamer-to-upper-QT-application-tp4663723p4663797.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Flow of PAUSE request from gstreamer to upper QT application., <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Flow-of-PAUSE-request-from-gstreamer-to-upper-QT-application-tp4663723p4663801.html">Re: Flow of PAUSE request from gstreamer to upper QT application.</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>