<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1481654558996_100969">OK, patch made and conversation moved here -<br></div><div><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1481654558996_100975"><a href="https://bugzilla.gnome.org/show_bug.cgi?id=776091" class="" id="yui_3_16_0_ym19_1_1481654558996_100974">https://bugzilla.gnome.org/show_bug.cgi?id=776091</a><br></div><div id="yui_3_16_0_ym19_1_1481654558996_100983"><br></div><div id="yui_3_16_0_ym19_1_1481654558996_101035"><br></div><div id="yui_3_16_0_ym19_1_1481654558996_100495"> </div><div class="signature" id="yui_3_16_0_ym19_1_1481654558996_100494">S++</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, December 9, 2016 7:09 PM, Stuart Axon <stuaxo2@yahoo.com> wrote:<br></font></div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <br><br> <div class="y_msg_container"><div id="yiv5641120558"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div dir="ltr" id="yiv5641120558yui_3_16_0_ym19_1_1481308173166_6997">Cheers, some really good info there + directions, I'll definitely give this a go, the code seems pretty understandable and I don't really touch C.<br clear="none"></div><div id="yiv5641120558yui_3_16_0_ym19_1_1481308173166_6998"><span><br clear="none"></span></div><div id="yiv5641120558yui_3_16_0_ym19_1_1481308173166_9040"><span><br clear="none"></span></div><div id="yiv5641120558yui_3_16_0_ym19_1_1481308173166_9041"><span id="yiv5641120558yui_3_16_0_ym19_1_1481308173166_9094">There should be enough gfx memory, it's set to 256mb - and I can play the videos through to the end when I hit this without incident.</span></div><div id="yiv5641120558yui_3_16_0_ym19_1_1481308173166_6994"> </div><div class="yiv5641120558signature" id="yiv5641120558yui_3_16_0_ym19_1_1481308173166_6993">S++</div> <div class="yiv5641120558qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv5641120558yqt9353586611" id="yiv5641120558yqt04255"><div class="yiv5641120558yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, December 9, 2016 3:35 PM, Enrique Ocaña González <eocanha@igalia.com> wrote:<br clear="none"></font></div> <blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;margin-top:5px;padding-left:5px;"> <br clear="none"><br clear="none"> <div class="yiv5641120558y_msg_container">El viernes, 9 de diciembre de 2016 13:41:18 (CET) Stuart Axon escribió:<br clear="none"><br clear="none">> I'm pretty sure I'm using the one from gst-plugins-bad (I'm using gstreamer<br clear="none">> master, last built about 3 days ago). But not 100% sure, is there a way to<br clear="none">> tell ?<br clear="none"><br clear="none">If you're using master, then you're using gst-plugins-bad almost for sure. <br clear="none">Anyway, it doesn't really mind, as none of the two versions seem to listen to <br clear="none">the FLUSH_START event.<br clear="none"><br clear="none">> So maybe I could mitigate this by manually calling drain() if in the error<br clear="none">> state or hook into the FLUSH_START?<br clear="none"><br clear="none">My suggestion would be to focus on FLUSH_START instead of reacting in the <br clear="none">error state. In my experience, when "Insufficient resources" happens, it's too <br clear="none">late to revert to a working state again.<br clear="none"><br clear="none">So, what I would do would be to touch gst_glimage_sink_event()[1], adding a <br clear="none">case for FLUSH_START. There you could do the same as the DRAIN query does[2] <br clear="none">(copy-paste or refactor into a common function called from both places). Make <br clear="none">sure that you don't return inside the case, so the code flow continues and <br clear="none">ends up calling to the ancestor class method to process the event[3]. That <br clear="none">last part is important for the right operation of the element.<br clear="none"><br clear="none">> I haven't seen the error in dispmanx-gst-play, however, my player is a bit<br clear="none">> more complex - I update the play state (seek, or try and change file) in<br clear="none">> gobject timer, from data I get on the network. S++<br clear="none"><br clear="none">I haven't looked in deep how dispmanx-gst-play works, so I can't give an <br clear="none">opinion about why things work there. Maybe a different sink is used (one which <br clear="none">doesn't hold EGL buffers for itself on flush), I don't know.<br clear="none"><br clear="none">Another think I forgot: check that your Raspberry has enough graphics memory <br clear="none">configured. Assuming you're using raspbian: sudo raspi-config, advanced <br clear="none">options, memory split. Use some higher value such as 128.<br clear="none"><br clear="none">In any case, I hope the suggestions help you to fix the issue. :-)<br clear="none"><br clear="none">Cheers.<br clear="none"><br clear="none"><br clear="none">[1] <a rel="nofollow" shape="rect" target="_blank" href="https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gl/">https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gl/</a><br clear="none">gstglimagesink.c?id=1.10.2#n1023<br clear="none"><br clear="none">[2] <a rel="nofollow" shape="rect" target="_blank" href="https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gl/">https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gl/</a><br clear="none">gstglimagesink.c?id=1.10.2#n1118<br clear="none"><br clear="none">[3] <a rel="nofollow" shape="rect" target="_blank" href="https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gl/">https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gl/</a><br clear="none">gstglimagesink.c?id=1.10.2#n1069<div class="yiv5641120558yqt2308738664" id="yiv5641120558yqtfd79900"><br clear="none"><br clear="none"><br clear="none"><br clear="none">-- <br clear="none">Enrique Ocaña González<br clear="none">_______________________________________________<br clear="none">gstreamer-devel mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br clear="none"></div><br clear="none"><br clear="none"></div> </blockquote> </div> </div>  </div></div></div></div></div><br><br></div> </blockquote> </div> </div>  </div></div></body></html>