1. 22 Jun, 2010 1 commit
  2. 21 Jun, 2010 1 commit
  3. 16 Jun, 2010 1 commit
    • Havoc Pennington's avatar
      v4l2src: in negotiate, check for error return from set_caps · 9b9f9d0a
      Havoc Pennington authored
      Fixes #621723  (partially)
      
      set_caps can fail if the video device is running, in that case
      setting its format leads to EBUSY.
      
      If set_caps fails then we will not have set up the buffer pool
      (it will be NULL) which leads to a crash when we try to pull
      buffers. If we fail the negotiate on set_caps failure, then we
      won't go to playing state and won't crash.
      
      This is a small improvement. Of course, a nicer fix would
      be to make set_caps work in the case where the format is
      unchanged. If the format has changed, failing is
      probably correct because we need to close the device
      (go to NULL state) in order to set caps.
      9b9f9d0a
  4. 11 Jun, 2010 1 commit
  5. 21 Mar, 2010 1 commit
  6. 18 Mar, 2010 1 commit
  7. 17 Mar, 2010 1 commit
  8. 05 Jan, 2010 1 commit
    • Tim-Philipp Müller's avatar
      v4l2src: fix memory leak in new uri handler code · d6868925
      Tim-Philipp Müller authored
      Don't leak a string everytime get_uri() is called and a device
      has been set. There's a limited number of devices, so just
      intern the string instead of doing more elaborate housekeeping
      and storing it in the instance struct or so.
      d6868925
  9. 21 Dec, 2009 1 commit
  10. 14 Oct, 2009 1 commit
  11. 11 Sep, 2009 1 commit
  12. 06 Sep, 2009 1 commit
  13. 14 Aug, 2009 2 commits
    • Hans de Goede's avatar
      v4l2src: fix 'hang' with some cameras caused by bad timestamping if no framerate is available · 10d41286
      Hans de Goede authored
      For cameras/drivers that don't support e.g. VIDIOC_G_PARM we'd end up without
      a framerate and would try to divide by 0, causing run-time warnings and all
      frames to be timestamped with 0, which makes sinks that sync against the clock
      drop them, causing 'hangs' (observed with the pwc driver and a Logitech QuickCam
      Pro 4000). So if we do not know the framerate, simply don't adjust the
      timestamps. Fixes #591451.
      10d41286
    • Filippo Argiolas's avatar
      v4l2src: clear format list in READY->NULL · a3a61f89
      Filippo Argiolas authored
      Clear format list and probed caps when going to NULL so if a new device
      is set we'll probe the formats again instead of using previously
      detected ones. Fixes bug #591747.
      a3a61f89
  14. 04 Aug, 2009 1 commit
    • Rob Clark's avatar
      v4l2: Add v4l2sink element · f19cfbda
      Rob Clark authored
      This also does the following changes:
      (1) pull the bufferpool code out into gstv4l2bufferpool.c, and make a
          bit more generic so it can be used both for v4l2src and v4l2sink
      (2) move some of the device probing/configuration/caps stuff into
          gstv4l2object.c so it does not have to be duplicated between
          v4l2src and v4l2sink
      
      Fixes bug #590280.
      f19cfbda
  15. 19 Jul, 2009 1 commit
  16. 22 Jun, 2009 1 commit
  17. 26 May, 2009 1 commit
    • Stefan Kost's avatar
      v4l2: cleanup and commenting · 751f7fc5
      Stefan Kost authored
      Remove newlines inserted by gst-indent once. Remove unused var from instance
      struct. Add comments. Add another #define for default property value.
      751f7fc5
  18. 25 Mar, 2009 2 commits
  19. 01 Mar, 2009 1 commit
    • Sjoerd Simons's avatar
      Wait for a frame to become available before capturing it · b6755a70
      Sjoerd Simons authored
      Use GstPoll to wait for the fd of the video device to become readable before
      trying to capture a frame. This speeds up stopping v4l2src a lot as it no
      longer has to wait for the next frame, especially when capturing with low
      framerates or when the video device just never generates a frame (which seems a
      common issue for uvcvideo devices)
      
      Fixes bug #563574.
      b6755a70
  20. 23 Feb, 2009 2 commits
  21. 29 Jan, 2009 2 commits
  22. 20 Jan, 2009 1 commit
  23. 07 Jan, 2009 1 commit
  24. 05 Jan, 2009 1 commit
  25. 13 Nov, 2008 1 commit
    • Fabricio Godoy's avatar
      sys/: Fix some spelling mistakes. Fixes #556802. · 5a456586
      Fabricio Godoy authored
      Original commit message from CVS:
      Patch by: Fabricio Godoy <skarllot at gmail dot com>
      * sys/oss/gstosssink.c: (gst_oss_sink_open):
      * sys/oss/gstosssrc.c: (gst_oss_src_open):
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_mmap):
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists):
      Fix some spelling mistakes. Fixes #556802.
      5a456586
  26. 04 Nov, 2008 1 commit
    • Bastien Nocera's avatar
      Optionally use libv4l to access v4l2 devices. Fixes bug #545033. · a50de826
      Bastien Nocera authored
      Original commit message from CVS:
      Patch by: Bastien Nocera <hadess at hadess dot net>,
      Hans de Goede <jwrdegoede at fedoraproject dot org>
      * configure.ac:
      * sys/v4l2/Makefile.am:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_read):
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
      (gst_v4l2_fill_lists), (gst_v4l2_open), (gst_v4l2_close),
      (gst_v4l2_get_norm), (gst_v4l2_set_norm), (gst_v4l2_get_frequency),
      (gst_v4l2_set_frequency), (gst_v4l2_signal_strength),
      (gst_v4l2_get_attribute), (gst_v4l2_set_attribute),
      (gst_v4l2_get_input), (gst_v4l2_set_input):
      * sys/v4l2/v4l2_calls.h:
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_finalize),
      (gst_v4l2_buffer_new), (gst_v4l2_buffer_pool_finalize),
      (gst_v4l2_buffer_pool_new), (gst_v4l2_buffer_pool_activate),
      (gst_v4l2src_fill_format_list),
      (gst_v4l2src_probe_caps_for_format_and_size),
      (gst_v4l2src_probe_caps_for_format), (gst_v4l2src_grab_frame),
      (gst_v4l2src_set_capture), (gst_v4l2src_capture_init),
      (gst_v4l2src_capture_start), (gst_v4l2src_capture_stop),
      (gst_v4l2src_get_nearest_size):
      Optionally use libv4l to access v4l2 devices. Fixes bug #545033.
      a50de826
  27. 26 Aug, 2008 1 commit
    • Stefan Kost's avatar
      sys/v4l2/: Fix memory leaks. Small code cleanups : No need for empty _init().... · 2ea5c052
      Stefan Kost authored
      sys/v4l2/: Fix memory leaks. Small code cleanups : No need for empty _init(). No need to memset instance structures. ...
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c:
      * sys/v4l2/gstv4l2src.c:
      * sys/v4l2/gstv4l2src.h:
      * sys/v4l2/v4l2_calls.c:
      * sys/v4l2/v4l2src_calls.c:
      Fix memory leaks. Small code cleanups : No need for empty _init(). No
      need to memset instance structures. Some more FIXME's.
      2ea5c052
  28. 21 Aug, 2008 1 commit
    • Wim Taymans's avatar
      sys/v4l2/gstv4l2src.c: Add S910 and PWC formats with a low priority. · 713e8000
      Wim Taymans authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_v4l2fourcc_to_structure),
      (gst_v4l2_get_caps_info):
      Add S910 and PWC formats with a low priority.
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_format_get_rank),
      (gst_v4l2src_probe_caps_for_format):
      Add more debugging.
      713e8000
  29. 13 Aug, 2008 1 commit
    • Edward Hervey's avatar
      sys/v4l2/gstv4l2src.c: Properly set the maximum latency value, in the same way... · 5cf61c6a
      Edward Hervey authored
      sys/v4l2/gstv4l2src.c: Properly set the maximum latency value, in the same way it is done in v4lsrc.
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_query):
      Properly set the maximum latency value, in the same way it is done in
      v4lsrc.
      * sys/v4l2/v4l2src_calls.c:
      Simplify fraction equality check, no need to use GValues for this.
      5cf61c6a
  30. 12 Aug, 2008 1 commit
    • Edward Hervey's avatar
      sys/v4l2/gstv4l2src.c: Add warning messages stating exactly why the latency query failed. · 27e20ead
      Edward Hervey authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_query):
      Add warning messages stating exactly why the latency query failed.
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_set_capture):
      In some cases, the negotiated framerate might be the default one which
      is already set internally. But we still need to mark it down in fps_n
      and fps_d so that the latency query can happen properly.
      27e20ead
  31. 17 Jul, 2008 1 commit
  32. 08 Jul, 2008 1 commit
    • Sebastian Dröge's avatar
      Don't use declarations after statements and variable length arrays. · 92ed8f6a
      Sebastian Dröge authored
      Original commit message from CVS:
      * ext/raw1394/gstdv1394src.c: (gst_dv1394src_uri_set_uri):
      * ext/speex/gstspeexenc.c: (gst_speex_enc_sink_getcaps):
      * ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_set_wp_config):
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_fixate):
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format):
      * tests/examples/equalizer/demo.c: (message_handler):
      * tests/examples/spectrum/demo-audiotest.c: (message_handler):
      * tests/examples/spectrum/demo-osssrc.c: (message_handler):
      Don't use declarations after statements and variable length arrays.
      92ed8f6a
  33. 09 Jun, 2008 1 commit
    • Sjoerd Simons's avatar
      sys/v4l2/gstv4l2src.c: Improve negotiation a bit more by picking the smallest... · 0f2d2752
      Sjoerd Simons authored
      sys/v4l2/gstv4l2src.c: Improve negotiation a bit more by picking the smallest possible resolution that is larger than...
      
      Original commit message from CVS:
      Patch by: Sjoerd Simons <sjoerd at luon dot net>
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_negotiate):
      Improve negotiation a bit more by picking the smallest possible
      resolution that is larger than the resolution specified in the
      first caps entry of the peer caps. Fixes bug #536994.
      0f2d2752
  34. 04 Jun, 2008 1 commit
    • Sjoerd Simons's avatar
      sys/v4l2/gstv4l2src.c: Provide a custom negotiation function to make sure to... · 22940c00
      Sjoerd Simons authored
      sys/v4l2/gstv4l2src.c: Provide a custom negotiation function to make sure to pick the highest possible framerate and ...
      
      Original commit message from CVS:
      Patch by: Sjoerd Simons <sjoerd at luon dot net>
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_fixate), (gst_v4l2src_negotiate):
      Provide a custom negotiation function to make sure to pick the highest
      possible framerate and resolution. Fixes bug #536646.
      22940c00
  35. 26 May, 2008 1 commit
  36. 17 May, 2008 1 commit
    • Sebastian Dröge's avatar
      sys/v4l2/gstv4l2src.c: Don't include the gstv4l2xoverlay.h header as the... · 5a344798
      Sebastian Dröge authored
      sys/v4l2/gstv4l2src.c: Don't include the gstv4l2xoverlay.h header as the XOverlay support isn't implemented at all ye...
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2src.c:
      Don't include the gstv4l2xoverlay.h header as the XOverlay support
      isn't implemented at all yet and this requires X headers to be
      installed. Fixes bug #533264.
      5a344798