1. 21 Mar, 2010 1 commit
  2. 17 Mar, 2010 1 commit
  3. 16 Feb, 2010 1 commit
  4. 11 Nov, 2009 1 commit
  5. 10 Sep, 2009 1 commit
  6. 07 Sep, 2009 1 commit
  7. 04 Sep, 2009 1 commit
  8. 03 Sep, 2009 2 commits
  9. 14 Aug, 2009 1 commit
  10. 09 Aug, 2009 1 commit
  11. 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
  12. 13 Jul, 2009 1 commit
  13. 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
  14. 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
  15. 23 Aug, 2008 1 commit
    • Mike Ruprecht's avatar
      sys/v4l2/gstv4l2object.c: Reprobe devices again instead of taking a cached... · e14c307e
      Mike Ruprecht authored
      sys/v4l2/gstv4l2object.c: Reprobe devices again instead of taking a cached list as new devices could've been plugged ...
      
      Original commit message from CVS:
      Patch by: Mike Ruprecht <cmaiku at gmail dot com>
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_class_probe_devices):
      Reprobe devices again instead of taking a cached list as new
      devices could've been plugged in. Fixes bug #549062.
      e14c307e
  16. 26 Mar, 2008 1 commit
  17. 30 May, 2007 2 commits
    • Andy Wingo Wingo's avatar
      sys/v4l2/gstv4l2object.*: Revert some unintended changes. · 70615818
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2007-05-30  Andy Wingo  <wingo@pobox.com>
      
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2object.c (gst_v4l2_object_new): Revert some
      unintended changes.
      70615818
    • Andy Wingo Wingo's avatar
      sys/v4l2/v4l2src_calls.*: Store the format list in the order that the driver gives it to us. · 3b5f9882
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2007-05-30  Andy Wingo  <wingo@pobox.com>
      
      * sys/v4l2/v4l2src_calls.h:
      * sys/v4l2/v4l2src_calls.c (gst_v4l2src_fill_format_list): Store
      the format list in the order that the driver gives it to us.
      (gst_v4l2src_probe_caps_for_format_and_size)
      (gst_v4l2src_probe_caps_for_format): New functions, fill GstCaps
      based on the capabilities of the device.
      (gst_v4l2src_grab_frame): Update for object variable renaming.
      (gst_v4l2src_set_capture): Update to be strict in its parameters,
      as in the set_caps below.
      (gst_v4l2src_capture_init): Update for object variable renaming,
      and reflow.
      (gst_v4l2src_capture_start, gst_v4l2src_capture_stop)
      (gst_v4l2src_capture_deinit): Update for object variable renaming.
      (gst_v4l2src_update_fps, gst_v4l2src_set_fps)
      (gst_v4l2src_get_fps): Remove; these functions don't have much
      meaning outside of an atomic set_caps method.
      (gst_v4l2src_buffer_new): Don't set buffer duration, it is not
      known.
      
      * sys/v4l2/gstv4l2tuner.c (gst_v4l2_tuner_set_channel): Remove
      call to update_fps; not sure about this change.
      (gst_v4l2_tuner_set_norm): Work around the fact that for the
      moment we don't have an update_fps_func.
      
      * sys/v4l2/gstv4l2src.h (struct _GstV4l2Src): Don't put v4l2
      structures in the object, just store what we need. Do store the
      probed caps of the device. Don't store the current frame rate.
      
      * sys/v4l2/gstv4l2src.c (gst_v4l2src_init): Remove the
      update_fps_function, for now. Update for new object variable
      naming.
      (gst_v4l2src_set_property, gst_v4l2src_get_property): Update for
      new object variable naming.
      (gst_v4l2src_v4l2fourcc_to_structure): Rename from ..._to_caps.
      (gst_v4l2_structure_to_v4l2fourcc): Rename from ...caps_to_....
      (gst_v4l2src_get_caps): Rework to probe the device for supported
      frame sizes and frame rates.
      (gst_v4l2src_set_caps): Rework to be strict in the given
      parameters: if someone asks us to have a certain size and rate,
      that is what we configure.
      (gst_v4l2src_get_read): Update for object variable naming. Don't
      leak buffers on short reads.
      (gst_v4l2src_get_mmap): Update for object variable naming, and add
      comments.
      (gst_v4l2src_create): Update for object variable naming.
      3b5f9882
  18. 04 Mar, 2007 1 commit
    • Jan Schmidt's avatar
      Fix a bunch of leaks shown by the newly-added states test. · de1357a4
      Jan Schmidt authored
      Original commit message from CVS:
      * ext/flac/gstflacenc.c: (gst_flac_enc_finalize):
      * ext/gconf/gstgconfaudiosink.c: (gst_gconf_audio_sink_class_init),
      (gst_gconf_audio_sink_dispose), (gst_gconf_audio_sink_finalize):
      * ext/gconf/gstgconfaudiosrc.c: (gst_gconf_audio_src_base_init),
      (gst_gconf_audio_src_class_init), (gst_gconf_audio_src_dispose),
      (gst_gconf_audio_src_finalize), (do_toggle_element):
      * ext/gconf/gstgconfvideosink.c: (gst_gconf_video_sink_base_init),
      (gst_gconf_video_sink_class_init), (gst_gconf_video_sink_finalize),
      (do_toggle_element):
      * ext/gconf/gstgconfvideosrc.c: (gst_gconf_video_src_base_init),
      (gst_gconf_video_src_class_init), (gst_gconf_video_src_dispose),
      (gst_gconf_video_src_finalize), (do_toggle_element):
      * ext/gconf/gstswitchsink.c: (gst_switch_sink_class_init),
      (gst_switch_sink_reset), (gst_switch_sink_set_child):
      * ext/hal/gsthalaudiosink.c: (gst_hal_audio_sink_base_init):
      * ext/hal/gsthalaudiosrc.c: (gst_hal_audio_src_base_init):
      * ext/shout2/gstshout2.c: (gst_shout2send_class_init),
      (gst_shout2send_init), (gst_shout2send_finalize):
      * gst/debug/testplugin.c: (gst_test_class_init),
      (gst_test_finalize):
      * gst/flx/gstflxdec.c: (gst_flxdec_class_init),
      (gst_flxdec_dispose):
      * gst/multipart/multipartmux.c: (gst_multipart_mux_finalize):
      * gst/rtp/gstrtpmp4gpay.c: (gst_rtp_mp4g_pay_finalize):
      * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_init),
      (gst_rtspsrc_finalize):
      * gst/rtsp/rtspextwms.c: (rtsp_ext_wms_free_context):
      * gst/rtsp/rtspextwms.h:
      * gst/smpte/gstsmpte.c: (gst_smpte_class_init),
      (gst_smpte_finalize):
      * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_finalize):
      * gst/udp/gstudpsink.c: (gst_udpsink_class_init),
      (gst_udpsink_finalize):
      * gst/wavparse/gstwavparse.c: (gst_wavparse_dispose),
      (gst_wavparse_sink_activate):
      * sys/oss/gstosssink.c: (gst_oss_sink_finalise):
      * sys/oss/gstosssrc.c: (gst_oss_src_class_init),
      (gst_oss_src_finalize):
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_object_destroy):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_finalize):
      * sys/ximage/gstximagesrc.c: (gst_ximage_src_ximage_get):
      Fix a bunch of leaks shown by the newly-added states test.
      de1357a4
  19. 22 Feb, 2007 1 commit
  20. 17 Jan, 2007 1 commit
    • Stefan Kost's avatar
      sys/v4l2/: Fix EIO handing when capturing. Add new property to specify the... · fdd167ae
      Stefan Kost authored
      sys/v4l2/: Fix EIO handing when capturing. Add new property to specify the number of buffers to enque (and remove the...
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c:
      (gst_v4l2_object_install_properties_helper),
      (gst_v4l2_object_set_property_helper),
      (gst_v4l2_object_get_property_helper), (gst_v4l2_set_defaults):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_init), (gst_v4l2src_set_property),
      (gst_v4l2src_get_property), (gst_v4l2src_set_caps):
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_fill_format_list),
      (gst_v4l2src_grab_frame), (gst_v4l2src_set_capture),
      (gst_v4l2src_capture_init), (gst_v4l2src_capture_start),
      (gst_v4l2src_capture_deinit):
      Fix EIO handing when capturing. Add new property to specify the number of
      buffers to enque (and remove the borked num-buffers usage).
      fdd167ae
  21. 01 Nov, 2006 1 commit
  22. 03 Oct, 2006 2 commits
  23. 27 Sep, 2006 3 commits
    • Wim Taymans's avatar
      sys/v4l2/: Renamed some properties to match the tuner interface naming. · d8769c7d
      Wim Taymans authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c:
      (gst_v4l2_object_install_properties_helper), (gst_v4l2_object_new),
      (gst_v4l2_object_set_property_helper),
      (gst_v4l2_object_get_property_helper), (gst_v4l2_set_defaults):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_create):
      * sys/v4l2/gstv4l2tuner.c: (gst_v4l2_tuner_contains_channel),
      (gst_v4l2_tuner_list_channels),
      (gst_v4l2_tuner_set_channel_and_notify),
      (gst_v4l2_tuner_get_channel), (gst_v4l2_tuner_contains_norm),
      (gst_v4l2_tuner_list_norms), (gst_v4l2_tuner_set_norm_and_notify),
      (gst_v4l2_tuner_get_norm):
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
      (gst_v4l2_fill_lists), (gst_v4l2_empty_lists):
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_get_fps):
      Renamed some properties to match the tuner interface naming.
      d8769c7d
    • Wim Taymans's avatar
      Small cleanups. · a9bc7aed
      Wim Taymans authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_object_set_property_helper),
      (gst_v4l2_set_defaults):
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_read),
      (gst_v4l2src_create):
      * sys/v4l2/gstv4l2xoverlay.c: (gst_v4l2_xoverlay_open):
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
      (gst_v4l2_fill_lists), (gst_v4l2_open), (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/v4l2src_calls.c: (gst_v4l2src_fill_format_list),
      (gst_v4l2src_grab_frame), (gst_v4l2src_get_capture),
      (gst_v4l2src_set_capture), (gst_v4l2src_capture_init),
      (gst_v4l2src_capture_start), (gst_v4l2src_capture_stop),
      (gst_v4l2src_buffer_new):
      * tests/icles/v4l2src-test.c: (my_bus_callback), (main):
      Small cleanups.
      Fix error messages.
      Use locks when getting timestamps.
      Fix leaks in test.
      Add licensing header to tests.
      a9bc7aed
    • Edgard Gusmão Lima's avatar
      Some cleanups and comments. · eea3a2d9
      Edgard Gusmão Lima authored
      Original commit message from CVS:
      Some cleanups and comments.
      eea3a2d9
  24. 26 Sep, 2006 2 commits
    • Wim Taymans's avatar
      sys/v4l2/Makefile.am: Fix makefile, list libs in stack order. · 27bde5b9
      Wim Taymans authored
      Original commit message from CVS:
      * sys/v4l2/Makefile.am:
      Fix makefile, list libs in stack order.
      * sys/v4l2/gstv4l2colorbalance.c:
      * sys/v4l2/gstv4l2colorbalance.h:
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_device_get_type),
      (gst_v4l2_object_install_properties_helper):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_read),
      (gst_v4l2src_get_mmap), (gst_v4l2src_create):
      * sys/v4l2/gstv4l2src.h:
      * sys/v4l2/gstv4l2tuner.h:
      * sys/v4l2/gstv4l2vidorient.h:
      * sys/v4l2/gstv4l2xoverlay.h:
      * sys/v4l2/v4l2_calls.h:
      * sys/v4l2/v4l2src_calls.h:
      Fix coding style:
      - Remove extern from functions.
      - Fix header indentation.
      Fix Flags, add defaults for properties.
      Remove unused enums.
      Fix TOO_LAZY in error messages.
      27bde5b9
    • Wim Taymans's avatar
      sys/v4l2/: Fix pass at code cleanups, move errors cases out of the normal flow... · d9db447d
      Wim Taymans authored
      sys/v4l2/: Fix pass at code cleanups, move errors cases out of the normal flow for additional code clarity.
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_class_probe_devices),
      (gst_v4l2_probe_needs_probe),
      (gst_v4l2_object_install_properties_helper), (gst_v4l2_object_new),
      (gst_v4l2_object_destroy), (gst_v4l2_object_set_property_helper),
      (gst_v4l2_object_get_property_helper), (gst_v4l2_set_defaults),
      (gst_v4l2_object_start), (gst_v4l2_object_stop):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_init), (gst_v4l2src_dispose),
      (gst_v4l2src_set_property), (gst_v4l2src_get_property),
      (gst_v4l2src_fixate), (gst_v4l2src_get_caps),
      (gst_v4l2src_set_caps), (gst_v4l2src_get_read),
      (gst_v4l2src_get_mmap), (gst_v4l2src_create):
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
      (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/v4l2src_calls.c: (gst_v4l2src_fill_format_list),
      (gst_v4l2src_queue_frame), (gst_v4l2src_grab_frame),
      (gst_v4l2src_get_capture), (gst_v4l2src_set_capture),
      (gst_v4l2src_capture_init), (gst_v4l2src_capture_start),
      (gst_v4l2src_capture_stop), (gst_v4l2src_capture_deinit),
      (gst_v4l2src_get_size_limits), (gst_v4l2src_set_fps),
      (gst_v4l2src_get_fps), (gst_v4l2src_buffer_finalize),
      (gst_v4l2src_buffer_new):
      Fix pass at code cleanups, move errors cases out of the normal
      flow for additional code clarity.
      d9db447d
  25. 02 Sep, 2006 2 commits
    • Stefan Kost's avatar
      sys/v4l2/: Whitespace cleanups, dashify property-names. · b638f1c9
      Stefan Kost authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2.c:
      * sys/v4l2/gstv4l2colorbalance.c:
      * sys/v4l2/gstv4l2object.c:
      (gst_v4l2_object_install_properties_helper):
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init):
      * sys/v4l2/gstv4l2src.h:
      Whitespace cleanups, dashify property-names.
      b638f1c9
    • Stefan Kost's avatar
      sys/v4l2/: Cleanup error messages and unify header comments · 074e7b0d
      Stefan Kost authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2.c:
      * sys/v4l2/gstv4l2colorbalance.c:
      * sys/v4l2/gstv4l2colorbalance.h:
      * sys/v4l2/gstv4l2object.c:
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c:
      * sys/v4l2/gstv4l2src.h:
      * sys/v4l2/gstv4l2tuner.c:
      * sys/v4l2/gstv4l2tuner.h:
      * sys/v4l2/gstv4l2xoverlay.c: (gst_v4l2_xoverlay_open):
      * sys/v4l2/gstv4l2xoverlay.h:
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
      (gst_v4l2_open):
      * sys/v4l2/v4l2_calls.h:
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_queue_frame),
      (gst_v4l2src_capture_init):
      * sys/v4l2/v4l2src_calls.h:
      Cleanup error messages and unify header comments
      074e7b0d
  26. 19 Jul, 2006 1 commit
    • Martin Szulecki's avatar
      sys/v4l2/gstv4l2object.c: If "device-name" is requested and the device is not... · 58f9de01
      Martin Szulecki authored
      sys/v4l2/gstv4l2object.c: If "device-name" is requested and the device is not open, try to temporarily open it to obt...
      
      Original commit message from CVS:
      Patch by: Martin Szulecki
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_object_get_property_helper):
      If "device-name" is requested and the device is not
      open, try to temporarily open it to obtain this
      information (#342494).
      58f9de01
  27. 19 May, 2006 1 commit
  28. 18 May, 2006 1 commit
    • Stefan Kost's avatar
      configure.ac: Check for X11 · 34315d2c
      Stefan Kost authored
      Original commit message from CVS:
      * configure.ac:
      Check for X11
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_class_probe_devices):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_iface_supported):
      * sys/v4l2/gstv4l2src.h:
      * sys/v4l2/gstv4l2xoverlay.c: (gst_v4l2_xoverlay_open):
      * sys/v4l2/gstv4l2xoverlay.h:
      Code cleanups, fix debug macros
      34315d2c
  29. 11 May, 2006 1 commit