[Bug 702844] New: glshader element crash

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jun 21 19:34:18 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=702844
  GStreamer | gst-plugins-gl | 0.10.3

           Summary: glshader element crash
    Classification: Platform
           Product: GStreamer
           Version: 0.10.3
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-gl
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: comicfans44 at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


in file gstglfiltershader.c 
when loading shader file ,it should pass "r"(for fopen) instead of O_RDONLY
(for open) ,this leads a crash when using glshader element. and here's a quick
fix.  


--- a/gst/gl/gstglfiltershader.c 2012-05-08 12:43:19.000000000 +0800
+++ b/gst/gl/gstglfiltershader.c 2013-06-20 15:49:52.639081794 +0800
@@ -263,7 +263,7 @@

   // read the filter from file
   GST_INFO ("loading file: %s", filename);
-  f = fopen (filename, O_RDONLY);
+  f = fopen (filename, "r");
   if (f == NULL) {
     GST_ERROR ("could not open file: %s", filename);
     return -1;

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list