Coder Social home page Coder Social logo

Comments (5)

Dudemanguy avatar Dudemanguy commented on May 28, 2024 1

Does this work?

diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index ce86570efe..da28093562 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -491,7 +491,8 @@ static void drm_egl_uninit(struct ra_ctx *ctx)
         if (p->gbm.surface)
             gbm_surface_destroy(p->gbm.surface);
         eglTerminate(p->egl.display);
-        gbm_device_destroy(p->gbm.device);
+        if (p->gbm.device)
+            gbm_device_destroy(p->gbm.device);
 
         if (p->drm_params.render_fd != -1)
             close(p->drm_params.render_fd);

from mpv.

Dudemanguy avatar Dudemanguy commented on May 28, 2024 1

Another workaround would be explicitly setting vo to libmpv in RSS Guard but indeed we shouldn't be segfaulting during probing.

from mpv.

guihkx avatar guihkx commented on May 28, 2024 1

Thanks for the heads up.

I may have to do that anyway, because with 0.38.0, playing any video causes a detached mpv window to pop up, instead of the old behavior where mpv would be embedded to RSS Guard's player (due to libmpv being the default back then, I suppose).

Additionally, I'm seeing another crash in a Qt-related thread after I play any video for the second time, which I'll have to investigate too (it's most likely unrelated to libmpv, though).

Thanks again.

from mpv.

guihkx avatar guihkx commented on May 28, 2024

Here are most of the options RSS Guard passes to libmpv:

https://github.com/martinrotter/rssguard/blob/4.6.6/src/librssguard/gui/mediaplayer/libmpv/libmpvbackend.cpp#L53-L62

It's probably worth noting that my GPU driver doesn't really support GBM (as far as I understand), which seems to be related to the crash, given the backtrace information.

from mpv.

guihkx avatar guihkx commented on May 28, 2024

Yup, that did it! Thank you very much for the quick fix. :D

from mpv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.