<div dir="auto">I have. Things look similar. I'll keep looking. <div dir="auto"><br></div><div dir="auto">Question: is there a reason you're not using the main loop? Have you seen it improve stability? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019, 4:19 PM David Ing <<a href="mailto:ding@panopto.com">ding@panopto.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I do not use `gst_parse_launch`, `gst_bus_add_watch`, or anything related to GMainLoop.  I am not familiar enough to give you stronger advice.<div><br></div><div>You might want to look through the samples and tutorials (many of which use a GMailLoop) if you haven't done that already.<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 2:08 PM Ben Rush <<a href="mailto:ben@ben-rush.net" target="_blank" rel="noreferrer">ben@ben-rush.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Do I need a different context for each main loop? Do the steps leading up to 8 look okay?<div dir="auto"><br></div><div dir="auto">Your advice about the PDBs was invaluable today, by the way. When I track all bits of this down I'll send out an update. </div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019, 3:51 PM David Ing <<a href="mailto:ding@panopto.com" target="_blank" rel="noreferrer">ding@panopto.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Steps 8-10 are in the correct order (my code does it that way).<div><br></div><div>But I don't have a step 11 because I don't use a GMainLoop.  I would guess that the main loop should stop before step 8 but I am only guessing.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 6, 2019 at 1:32 PM Ben Rush <<a href="mailto:ben@ben-rush.net" rel="noreferrer noreferrer" target="_blank">ben@ben-rush.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have a need to put multiple video windows in a single application. This means multiple pipelines. For example, the RTSP URL is different for each player, and so I get a new pipeline for each invocation of gst_parse_launch. <br><br>I can share code, but in general: what is the best way to do this? The way I'm doing this now (for EACH player I've instantiated in the SAME app): <div><br></div><div>1) gst_parse_launch, get back the pipeline, <br>2) gst_pipeline_get_bus, to create a bus on this pipeline.</div><div>3) g_main_loop_new(NULL, FALSE) to create a new loop (this is where my main question is at)</div><div>4) gst_bus_add_watch to create an add watch on this pipeline, <br>5) gst_element_set_state to set my pipeline state to GST_STATE_PLAYING</div><div>6) g_main_loop_run on the loop returned from #3</div><div>7) Then I play until a stop is issued....</div><div>8) gst_element_set_state(pipeline, GST_STATE_NULL)</div><div>9) unref the bus, <br>10) unref the pipeline<br>11) unref the loop<br><br>I ask about this order, and the fact I'm creating a new loop without an independent context because I'm getting some random crashes in my app hosting multiple players, and it appears to be during tear down. In general, is this pattern acceptable, or have I committed a sin somewhere? </div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>