~ubuntu-branches/ubuntu/raring/gst-plugins-good0.10/raring-proposed

« back to all changes in this revision

Viewing changes to sys/v4l2/gstv4l2src.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-02-09 16:44:53 UTC
  • mfrom: (40.2.38 experimental)
  • Revision ID: package-import@ubuntu.com-20120209164453-6hjokwrvdn42zopb
Tags: 0.10.30.3-1ubuntu1
* Merge from Debian experimental, remaining changes:
  - 04_move_farsight_plugins_to_good.patch
    Import autoconvert, dtmf, liveadder, rptmux from -plugins-bad
  - 05_move_shm_to_good.patch
    Import shm from -plugins-bad.
  - 07_move-camerabin.patch
    Import camerabin, camerabin2, jpegformat and basecamerabinsrc
    from -plugins-bad.
  - control*:
    * Drop dependency from gstreamer0.10-plugins-good on
      gstreamer0.10-gconf. It pulls gconf and gtk3 onto the Kubuntu cd.
    * Use Breaks instead of Conflicts.
    * Add a 'Pre-Depends: ${misc:Pre-Depends}' to the plugin package,
      since we're shipping shared libraries in the package that Debian
      isn't.
* Update the patches by pulling new version of the code from
  -plugins-bad 0.10.22.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
  GstV4l2Object *v4l2object = GST_V4L2SRC (iface)->v4l2object;
96
96
 
97
97
#ifdef HAVE_XVIDEO
98
 
  g_assert (iface_type == GST_TYPE_TUNER ||
99
 
      iface_type == GST_TYPE_X_OVERLAY ||
100
 
      iface_type == GST_TYPE_COLOR_BALANCE ||
101
 
      iface_type == GST_TYPE_VIDEO_ORIENTATION);
 
98
  if (!(iface_type == GST_TYPE_TUNER ||
 
99
        iface_type == GST_TYPE_X_OVERLAY ||
 
100
        iface_type == GST_TYPE_COLOR_BALANCE ||
 
101
        iface_type == GST_TYPE_VIDEO_ORIENTATION))
 
102
    return FALSE;
102
103
#else
103
 
  g_assert (iface_type == GST_TYPE_TUNER ||
104
 
      iface_type == GST_TYPE_COLOR_BALANCE ||
105
 
      iface_type == GST_TYPE_VIDEO_ORIENTATION);
 
104
  if (!(iface_type == GST_TYPE_TUNER ||
 
105
        iface_type == GST_TYPE_COLOR_BALANCE ||
 
106
        iface_type == GST_TYPE_VIDEO_ORIENTATION))
 
107
    return FALSE;
106
108
#endif
107
109
 
108
110
  if (v4l2object->video_fd == -1)
520
522
      }
521
523
    }
522
524
    gst_caps_unref (thiscaps);
523
 
    gst_caps_unref (peercaps);
524
525
  } else {
525
526
    /* no peer or peer have ANY caps, work with our own caps then */
526
527
    caps = thiscaps;
527
528
  }
 
529
  if (peercaps)
 
530
    gst_caps_unref (peercaps);
528
531
  if (caps) {
529
532
    caps = gst_caps_make_writable (caps);
530
533
    gst_caps_truncate (caps);