[Bug 722345] directfb: video sink crashes when used with ext_surface

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 16 07:04:46 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=722345
  GStreamer | gst-plugins-bad | 1.2.2

Sebastian Dröge (slomo) <slomo> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #266475|none                        |needs-work
             status|                            |

--- Comment #2 from Sebastian Dröge (slomo) <slomo at coaxion.net> 2014-01-16 15:04:40 UTC ---
Review of attachment 266475:
 --> (https://bugzilla.gnome.org/review?bug=722345&attachment=266475)

:::
/home/etrousset/source_ext/gst-1.2.2/gst-plugins-bad-1.2.2.modified/ext/directfb/dfbvideosink.c
@@ +235,3 @@
+  if(!dfbpool->dfbvideosink->ext_surface) {
+      ret = dfbpool->dfbvideosink->dfb->CreateSurface
(dfbpool->dfbvideosink->dfb,
+                                                       &s_dsc, &surface);

Please run gst-indent on this and create a new patch :)

@@ +284,2 @@
   /* Release our internal surface */
+  if (meta && meta->surface) {

Why would we ever have no meta? Sounds like we should just fail in that case

@@ +435,3 @@
      this is an optimisation for memory allocation */
+  if (meta->pixel_format != DSPF_UNKNOWN) {
+      alloc_size = meta->width * meta->height *
DFB_BYTES_PER_PIXEL(meta->pixel_format);

What about stride here?

@@ +1130,3 @@
+      case GST_VIDEO_FORMAT_BGR:
+      case GST_VIDEO_FORMAT_RGB:
+      pixel_format = DSPF_RGB24;

Can you put this part in a separate patch? Also I don't think it's correct.
It's probably GST_VIDEO_FORMAT_BGR on little endian, and RGB on big endian.

-- 
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