]> code.ossystems Code Review - meta-freescale.git/blob
69cc42e9aeafdb530b49f478ab32fa9689663ddc
[meta-freescale.git] /
1 diff -ruN gst-fsl-plugin-2.0.3.orig/src/misc/v4l_sink/src/mfw_gst_fb.c gst-fsl-plugin-2.0.3/src/misc/v4l_sink/src/mfw_gst_fb.c
2 --- gst-fsl-plugin-2.0.3.orig/src/misc/v4l_sink/src/mfw_gst_fb.c        2012-06-29 11:28:36.837384109 +0800
3 +++ gst-fsl-plugin-2.0.3/src/misc/v4l_sink/src/mfw_gst_fb.c     2012-06-29 11:31:01.441387410 +0800
4 @@ -1,5 +1,5 @@
5  /*
6 - * Copyright (C) 2009-2011 Freescale Semiconductor, Inc. All rights reserved.
7 + * Copyright (c) 2009-2012, Freescale Semiconductor, Inc. All rights reserved.
8   *
9   */
10  
11 @@ -236,6 +236,8 @@
12      ret = ioctl(v4l->fd_fb, FBIOGET_VSCREENINFO, &fb_var);
13      if (ret < 0) {
14          g_print("Unable to get resolution value\n");
15 +        v4l->fullscreen_width = 1024;
16 +        v4l->fullscreen_height = 768;
17          return FALSE;
18      }
19      v4l->fullscreen_width = fb_var.xres;
20 diff -ruN gst-fsl-plugin-2.0.3.orig/src/misc/v4l_sink/src/mfw_gst_v4lsink.c gst-fsl-plugin-2.0.3/src/misc/v4l_sink/src/mfw_gst_v4lsink.c
21 --- gst-fsl-plugin-2.0.3.orig/src/misc/v4l_sink/src/mfw_gst_v4lsink.c   2012-06-29 11:28:36.837384109 +0800
22 +++ gst-fsl-plugin-2.0.3/src/misc/v4l_sink/src/mfw_gst_v4lsink.c        2012-06-29 11:32:26.337389344 +0800
23 @@ -1427,7 +1427,7 @@
24              g_mutex_lock (v4l_info->flow_lock);
25              v4l_info->gstXInfo->running = FALSE;
26              g_mutex_unlock (v4l_info->flow_lock);
27 -            if (v4l_info->x11enabled) {
28 +            if ((v4l_info->x11enabled) && (v4l_info->gstXInfo) && (v4l_info->gstXInfo->event_thread)) {
29                  g_thread_join (v4l_info->gstXInfo->event_thread);
30              }
31              if (v4l_info->gstXInfo->xwindow) {