<div dir="ltr">Stream is playing, audio is there but just colored stripes on texture due to not being able to get size from gstreamer to set surfaces buffer size.<br>I've made workaround by:<div>1. catching "state-changed" (on_state_changed in example code)</div><div>2. adding following snippet to re-fire size change<br><div>  // Workaround for bad width and height</div><div>  if(state == GST_PLAYER_STATE_PLAYING)</div><div>  {</div><div>    GstPlayerVideoInfo * vi = gst_player_get_current_video_track(player->player);<br></div><div>    gint width = gst_player_video_info_get_width(vi);</div><div>    gint height = gst_player_video_info_get_height(vi);</div><div>    __android_log_print (ANDROID_LOG_DEBUG, "GstPlayer", "*************************************************** width x height=%dx%d", width, height);</div><div>    </div><div>    on_video_dimensions_changed(unused, width, height, player);</div><div>  }</div></div><div><br></div><div>Nasty workaround but that solved a problem. Please note that this is the only change in example code.</div><div><br></div><div>This will do it until we find real cause of missing event</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 24, 2016 at 3:50 PM, Sebastian Dröge-3 [via GStreamer-devel] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4679754&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"><span class="">

        On Fr, 2016-09-23 at 09:59 -0700, pedjaman wrote:
<br></span><span class="">> Could you provide sample code you are using? The one which produces
<br>> two
<br>> events (0x0 and apropriate widthn and height)?
<br>> Also which version of GStreamer? Is it 1.9.2?
<br>> Trying to find out if I'm doing something wrong or it is somehwere in
<br>> GStreamer
<br><br></span><span class="">I was using gst-play from here:
<br>  <a href="https://cgit.freedesktop.org/gstreamer/gst-examples/tree/playback/player/gst-play" rel="nofollow" link="external" target="_blank">https://cgit.freedesktop.<wbr>org/gstreamer/gst-examples/<wbr>tree/playback/player/gst-play</a><br><br>And then added a signal handler for video-dimensions-changed, which
<br>just printed the resolution. This is with GIT master, but nothing
<br>changed in that regard since 1.9.2.
<br><br>Does your stream start playing for you?
<br><br></span><span class="">-- 
<br>Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="nofollow" link="external" target="_blank">http://www.centricular.com</a><br></span><span class="">______________________________<wbr>_________________
<br>gstreamer-devel mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4679753&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br><div><br><img src="http://gstreamer-devel.966125.n4.nabble.com/images/icon_attachment.gif"> <strong>signature.asc</strong> (985 bytes) <a href="http://gstreamer-devel.966125.n4.nabble.com/attachment/4679753/0/signature.asc" rel="nofollow" link="external" target="_blank">Download Attachment</a></div>

        
        
        
        <br>
        <br>
        </span><hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span class="">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span><a href="http://gstreamer-devel.966125.n4.nabble.com/gstplayer-with-rtsp-stream-reports-widthxheight-0x0-in-video-dimensions-changed-event-tp4679687p4679753.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.<wbr>n4.nabble.com/gstplayer-with-<wbr>rtsp-stream-reports-<wbr>widthxheight-0x0-in-video-<wbr>dimensions-changed-event-<wbr>tp4679687p4679753.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 gstplayer with rtsp stream reports widthxheight 0x0 in "video-dimensions-changed" event, <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/gstplayer-with-rtsp-stream-reports-widthxheight-0x0-in-video-dimensions-changed-event-tp4679687p4679754.html">Re: gstplayer with rtsp stream reports widthxheight 0x0 in "video-dimensions-changed" event</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>