1. 20 Jul, 2007 1 commit
    • Michael Smith's avatar
      sys/xvimage/xvimagesink.c: xcontext->im_format is only for testing XShm... · 11cf0dcd
      Michael Smith authored
      sys/xvimage/xvimagesink.c: xcontext->im_format is only for testing XShm support (as the header file comments document...
      
      Original commit message from CVS:
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new),
      (gst_xvimagesink_get_xv_support), (gst_xvimagesink_setcaps):
      xcontext->im_format is only for testing XShm support (as the header
      file comments document). Use xvimage->im_format for everything else.
      Avoids spurious warnings on buffer allocation before setcaps.
      11cf0dcd
  2. 14 Jul, 2007 2 commits
    • Bastien Nocera's avatar
      sys/xvimage/xvimagesink.*: Add option to turn off double-buffering for debugging purposes. · 312c0bd5
      Bastien Nocera authored
      Original commit message from CVS:
      Patch by: Bastien Nocera <hadess at hadess dot net>
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_xv_support),
      (gst_xvimagesink_set_property), (gst_xvimagesink_get_property),
      (gst_xvimagesink_init), (gst_xvimagesink_class_init):
      * sys/xvimage/xvimagesink.h:
      Add option to turn off double-buffering for debugging purposes.
      Fixes #437169.
      312c0bd5
    • Jorn Baayen's avatar
      sys/: add 'handle-expose' property. Useful for video widgets which may want to... · 877fa603
      Jorn Baayen authored
      sys/: add 'handle-expose' property. Useful for video widgets which may want to be in control of Expose behaviour. Fix...
      
      Original commit message from CVS:
      Patch by: Jorn Baayen <jorn at openedhand dot com>
      * sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents),
      (gst_ximagesink_set_property), (gst_ximagesink_get_property),
      (gst_ximagesink_init), (gst_ximagesink_class_init):
      * sys/ximage/ximagesink.h:
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents),
      (gst_xvimagesink_set_property), (gst_xvimagesink_get_property),
      (gst_xvimagesink_init), (gst_xvimagesink_class_init):
      * sys/xvimage/xvimagesink.h:
      add 'handle-expose' property. Useful for video widgets which may want to
      be in control of Expose behaviour. Fixes #380625
      877fa603
  3. 13 Jul, 2007 1 commit
    • Jan Schmidt's avatar
      sys/xvimage/xvimagesink.*: After a caps change, redraw our borders to avoid... · 47636149
      Jan Schmidt authored
      sys/xvimage/xvimagesink.*: After a caps change, redraw our borders to avoid garbage left there when the image format ...
      
      Original commit message from CVS:
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_put),
      (gst_xvimagesink_setcaps):
      * sys/xvimage/xvimagesink.h:
      After a caps change, redraw our borders to avoid garbage left there
      when the image format changes to a smaller size, like 16:9 -> 4:3
      Also, hold the flow_lock a bit longer in the set_caps while we're
      fiddling with the xcontext.
      47636149
  4. 21 May, 2007 1 commit
  5. 17 May, 2007 1 commit
    • Jan Schmidt's avatar
      sys/: When we create our own window, indicate that we handle the · cbc95dfb
      Jan Schmidt authored
      Original commit message from CVS:
      * sys/ximage/ximagesink.c: (gst_ximagesink_ximage_put),
      (gst_ximagesink_xwindow_new), (gst_ximagesink_handle_xevents),
      (gst_ximagesink_show_frame):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_put),
      (gst_xvimagesink_xwindow_new), (gst_xvimagesink_handle_xevents),
      (gst_xvimagesink_show_frame):
      When we create our own window, indicate that we handle the
      WM_DELETE client message from the window manager, so that it won't
      kill our window (and our app) along with it. Handle ClientMessage,
      post an error on the bus, and close the window. Further buffers
      arriving will result in a FlowError because the window has been
      destroyed.
      Fixes: #393975
      Clean up the X event handling loop and make them the same for
      both xvimagesink and ximagesink while I'm at it.
      cbc95dfb
  6. 13 May, 2007 1 commit
  7. 20 Apr, 2007 1 commit
    • Stefan Kost's avatar
      gst/subparse/: Use GST_DISABLE_XML here · 23a2a0e2
      Stefan Kost authored
      Original commit message from CVS:
      * gst/subparse/gstsubparse.c:
      * gst/subparse/samiparse.c:
      Use GST_DISABLE_XML here
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_put),
      (gst_xvimagesink_xwindow_new), (gst_xvimagesink_get_xv_support),
      (gst_xvimagesink_buffer_alloc),
      (gst_xvimagesink_navigation_send_event):
      * sys/xvimage/xvimagesink.h:
      Include stdlib.h when using atoi.
      * tests/check/elements/playbin.c: (playbin_suite):
      Use GST_DISABLE_REGISTRY here
      23a2a0e2
  8. 08 Mar, 2007 1 commit
    • Jan Schmidt's avatar
      sys/: Move some cleanup stuff from the state change handler into a _reset()... · ea0d6ebf
      Jan Schmidt authored
      sys/: Move some cleanup stuff from the state change handler into a _reset() function that can be called from _finaliz...
      
      Original commit message from CVS:
      * sys/ximage/ximagesink.c: (gst_ximagesink_xcontext_clear),
      (gst_ximagesink_change_state), (gst_ximagesink_reset),
      (gst_ximagesink_finalize):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_change_state),
      (gst_xvimagesink_reset), (gst_xvimagesink_finalize):
      Move some cleanup stuff from the state change handler into a _reset()
      function that can be called from _finalize(). This ensures that things
      get freed even if (for some reason) the NULL->READY state transition
      fails in the parent class.
      Even if a parent state change fails, process our downward state change
      logic instead of bailing out early.
      Free the correct xcontext pointer in ximagesink's xcontext_clear.
      ea0d6ebf
  9. 15 Feb, 2007 1 commit
    • Wim Taymans's avatar
      sys/: Small constifications. · 6ed39cf7
      Wim Taymans authored
      Original commit message from CVS:
      * sys/ximage/ximagesink.c:
      (gst_ximagesink_calculate_pixel_aspect_ratio):
      * sys/xvimage/xvimagesink.c:
      (gst_xvimagesink_calculate_pixel_aspect_ratio):
      Small constifications.
      6ed39cf7
  10. 06 Feb, 2007 1 commit
    • Julien Moutte's avatar
      sys/xvimage/xvimagesink.*: Implement PropertyProbe Interface for XVAdaptors so... · bbae92bb
      Julien Moutte authored
      sys/xvimage/xvimagesink.*: Implement PropertyProbe Interface for XVAdaptors so that one can choose the adaptor to use...
      
      Original commit message from CVS:
      2007-02-06  Julien MOUTTE  <julien@moutte.net>
      
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents),
      (gst_xvimagesink_get_xv_support),
      (gst_xvimagesink_xcontext_clear),
      (gst_xvimagesink_interface_supported),
      (gst_xvimagesink_probe_get_properties),
      (gst_xvimagesink_probe_probe_property),
      (gst_xvimagesink_probe_needs_probe),
      (gst_xvimagesink_probe_get_values),
      (gst_xvimagesink_property_probe_interface_init),
      (gst_xvimagesink_set_property), (gst_xvimagesink_get_property),
      (gst_xvimagesink_init), (gst_xvimagesink_class_init),
      (gst_xvimagesink_get_type):
      * sys/xvimage/xvimagesink.h: Implement PropertyProbe Interface
      for XVAdaptors so that one can choose the adaptor to use with
      gstreamer-properties.
      bbae92bb
  11. 23 Jan, 2007 1 commit
    • Julien Moutte's avatar
      sys/: Don't lock on navigation event push, just on keysym to string. · 60dad35d
      Julien Moutte authored
      Original commit message from CVS:
      2007-01-23  Julien MOUTTE  <julien@moutte.net>
      
      * sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents):
      Don't lock on navigation event push, just on keysym to string.
      Fixes #397673 again.
      60dad35d
  12. 22 Jan, 2007 2 commits
    • Julien Moutte's avatar
      sys/: Looking at Xorg code i can't figure out if that XKeysymToString function... · 78616838
      Julien Moutte authored
      sys/: Looking at Xorg code i can't figure out if that XKeysymToString function is thread sensible or not. Lock it jus...
      
      Original commit message from CVS:
      2007-01-22  Julien MOUTTE  <julien@moutte.net>
      
      * sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents):
      Looking at Xorg code i can't figure out if that XKeysymToString
      function is thread sensible or not. Lock it just in case as
      recommended by Radek Doulik <rodo at ximian dot com>.
      78616838
    • Julien Moutte's avatar
      sys/: Lock that X Call as well. Fixes #397673. · 34af6e72
      Julien Moutte authored
      Original commit message from CVS:
      2007-01-22  Julien MOUTTE  <julien@moutte.net>
      
      * sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents):
      Lock that X Call as well. Fixes #397673.
      34af6e72
  13. 16 Jan, 2007 1 commit
  14. 07 Jan, 2007 2 commits
    • Young-Ho Cha's avatar
      sys/xvimage/xvimagesink.c: Fixes : #390076. · 71b8a1f3
      Young-Ho Cha authored
      Original commit message from CVS:
      2007-01-07  Julien MOUTTE  <julien@moutte.net>
      
      * sys/xvimage/xvimagesink.c: (gst_xvimage_buffer_destroy),
      (gst_xvimage_buffer_finalize), (gst_xvimagesink_xvimage_new),
      (gst_xvimagesink_xvimage_put),
      (gst_lookup_xv_port_from_adaptor),
      (gst_xvimagesink_get_xv_support), (gst_xvimagesink_setcaps),
      (gst_xvimagesink_set_xwindow_id),
      (gst_xvimagesink_set_event_handling),
      (gst_xvimagesink_set_property), (gst_xvimagesink_get_property),
      (gst_xvimagesink_init), (gst_xvimagesink_class_init):
      Patch by : Young-Ho Cha <ganadist at chollian dot net>
      Fixes : #390076.
      Add an adaptor property to select a specific XV adaptor.
      * sys/xvimage/xvimagesink.h:
      71b8a1f3
    • Julien Moutte's avatar
      sys/: Use flow_lock much more to protect every access to xwindow. · 50d428b9
      Julien Moutte authored
      Original commit message from CVS:
      2007-01-07  Julien MOUTTE  <julien@moutte.net>
      
      * sys/ximage/ximagesink.c: (gst_ximage_buffer_finalize),
      (gst_ximagesink_handle_xerror), (gst_ximagesink_ximage_new),
      (gst_ximagesink_ximage_destroy), (gst_ximagesink_ximage_put),
      (gst_ximagesink_handle_xevents), (gst_ximagesink_setcaps),
      (gst_ximagesink_change_state), (gst_ximagesink_set_xwindow_id),
      (gst_ximagesink_expose), (gst_ximagesink_set_event_handling):
      * sys/xvimage/xvimagesink.c: (gst_xvimage_buffer_destroy),
      (gst_xvimage_buffer_finalize), (gst_xvimagesink_handle_xerror),
      (gst_xvimagesink_xvimage_new), (gst_xvimagesink_xvimage_put),
      (gst_xvimagesink_handle_xevents), (gst_xvimagesink_setcaps),
      (gst_xvimagesink_change_state),
      (gst_xvimagesink_set_xwindow_id),
      (gst_xvimagesink_expose), (gst_xvimagesink_set_event_handling):
      Use flow_lock much more to protect every access to xwindow.
      Try to catch erros while creating images in case some drivers
      are
      just generating an XError when the requested image is too big.
      Should fix : #354698, #384008, #384060.
      * tests/icles/stress-xoverlay.c: (cycle_window),
      (create_window):
      Implement some stress testing of setting window xid.
      50d428b9
  15. 04 Jan, 2007 1 commit
    • Julien Moutte's avatar
      Add a method to the XOverlay interface to allow disabling of event handling in... · 163ec9ec
      Julien Moutte authored
      Add a method to the XOverlay interface to allow disabling of event handling in x[v]imagesink elements. This will let ...
      
      Original commit message from CVS:
      2007-01-04  Julien MOUTTE  <julien@moutte.net>
      
      * gst-libs/gst/interfaces/xoverlay.c:
      (gst_x_overlay_handle_events):
      * gst-libs/gst/interfaces/xoverlay.h:
      * sys/ximage/ximagesink.c: (gst_ximagesink_xwindow_new),
      (gst_ximagesink_set_xwindow_id),
      (gst_ximagesink_set_event_handling),
      (gst_ximagesink_xoverlay_init), (gst_ximagesink_set_property),
      (gst_ximagesink_get_property), (gst_ximagesink_init),
      (gst_ximagesink_class_init):
      * sys/ximage/ximagesink.h:
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xwindow_new),
      (gst_xvimagesink_set_xwindow_id),
      (gst_xvimagesink_set_event_handling),
      (gst_xvimagesink_xoverlay_init), (gst_xvimagesink_set_property),
      (gst_xvimagesink_get_property), (gst_xvimagesink_init),
      (gst_xvimagesink_class_init):
      * sys/xvimage/xvimagesink.h:
      * tests/icles/stress-xoverlay.c: (toggle_events),
      (create_window):
      Add a method to the XOverlay interface to allow disabling of
      event handling in x[v]imagesink elements. This will let X events
      propagate to parent windows which can be usefull in some cases.
      Be carefull that the application is then responsible of pushing
      navigation events and expose events to the video sink.
      Fixes: #387138.
      163ec9ec
  16. 27 Dec, 2006 1 commit
    • Julien Moutte's avatar
      sys/: Plug a caps leak. · d3aa5300
      Julien Moutte authored
      Original commit message from CVS:
      2006-12-27  Julien MOUTTE  <julien@moutte.net>
      
      * sys/ximage/ximagesink.c: (gst_ximagesink_setcaps):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_setcaps): Plug a
      caps leak.
      * win32/common/config.h: Updated.
      d3aa5300
  17. 24 Nov, 2006 1 commit
  18. 15 Nov, 2006 1 commit
  19. 14 Nov, 2006 1 commit
    • Jan David Mol's avatar
      Various gsize and gssize printf fixes. Fixes #372507. · d24ad6ac
      Jan David Mol authored
      Original commit message from CVS:
      Patch by: Jan David Mol <j dot j dot d dot mol at tudelft dot nl>
      * gst-libs/gst/riff/riff-read.c: (gst_riff_parse_strf_auds),
      (gst_riff_parse_strf_iavs):
      * gst/subparse/gstsubparse.c: (convert_encoding):
      * gst/tcp/gstmultifdsink.c:
      (gst_multi_fd_sink_handle_client_write):
      * gst/tcp/gsttcp.c: (gst_tcp_socket_write), (gst_tcp_socket_read),
      (gst_tcp_read_buffer), (gst_tcp_gdp_read_caps),
      (gst_tcp_gdp_write_buffer), (gst_tcp_gdp_write_caps):
      * gst/tcp/gsttcpclientsink.c: (gst_tcp_client_sink_render):
      * sys/ximage/ximagesink.c: (gst_ximagesink_check_xshm_calls),
      (gst_ximagesink_ximage_new):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new):
      Various gsize and gssize printf fixes. Fixes #372507.
      d24ad6ac
  20. 27 Oct, 2006 1 commit
    • Tim-Philipp Müller's avatar
      sys/: Explicitly create our custom buffer classes at a thread-safe location as... · a74bb753
      Tim-Philipp Müller authored
      sys/: Explicitly create our custom buffer classes at a thread-safe location as well, since g_type_class_ref() doesn't...
      
      Original commit message from CVS:
      * sys/ximage/ximagesink.c: (gst_ximagesink_get_type):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_type):
      Explicitly create our custom buffer classes at a thread-safe
      location as well, since g_type_class_ref() doesn't seem to be
      entirely thread-safe either (#365501; also see #349410).
      a74bb753
  21. 20 Oct, 2006 1 commit
    • Stefan Kost's avatar
      sys/: Try to redraw borders only when needed. Apparently this consumes... · 776911ec
      Stefan Kost authored
      sys/: Try to redraw borders only when needed. Apparently this consumes resources on small devices... :-O (#363607)
      
      Original commit message from CVS:
      2006-10-20  Julien MOUTTE  <julien@moutte.net>
      
      * sys/ximage/ximagesink.c: (gst_ximagesink_ximage_put):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_put):
      Patch by: Stefan Kost  <ensonic@users.sf.net>
      Try to redraw borders only when needed. Apparently this consumes
      resources on small devices... :-O (#363607)
      776911ec
  22. 05 Oct, 2006 1 commit
    • Tim-Philipp Müller's avatar
      Printf format fixes. · 9e107d67
      Tim-Philipp Müller authored
      Original commit message from CVS:
      * ext/alsa/gstalsadeviceprobe.c:
      (gst_alsa_device_property_probe_get_values):
      * ext/alsa/gstalsasink.c: (set_hwparams):
      * ext/ogg/gstoggdemux.c: (gst_ogg_demux_chain_elem_pad),
      (gst_ogg_chain_new_stream), (gst_ogg_demux_read_chain):
      * ext/ogg/gstoggmux.c: (gst_ogg_mux_send_headers),
      (gst_ogg_mux_process_best_pad):
      * ext/ogg/gstoggparse.c: (gst_ogg_parse_new_stream),
      (gst_ogg_parse_chain):
      * ext/ogg/gstogmparse.c: (gst_ogm_parse_stream_header):
      * ext/vorbis/vorbisdec.c: (vorbis_handle_data_packet):
      * ext/vorbis/vorbisenc.c: (gst_vorbis_enc_setup),
      (gst_vorbis_enc_buffer_check_discontinuous):
      * ext/vorbis/vorbisparse.c: (vorbis_parse_src_query):
      * gst-libs/gst/audio/gstbaseaudiosink.c:
      (gst_base_audio_sink_render):
      * gst-libs/gst/cdda/gstcddabasesrc.c:
      (gst_cdda_base_src_handle_track_seek):
      * gst-libs/gst/rtp/gstbasertpdepayload.c:
      (gst_base_rtp_depayload_push_full):
      * gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_push):
      * gst/audioresample/resample.c: (resample_input_pushthrough):
      * gst/playback/gstplaybasebin.c: (queue_out_of_data):
      * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_handle_clients):
      * gst/typefind/gsttypefindfunctions.c: (mp3_type_find_at_offset),
      (wavpack_type_find):
      * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_create):
      * sys/xvimage/xvimagesink.c: (gst_xvimage_buffer_destroy),
      (gst_xvimagesink_check_xshm_calls), (gst_xvimagesink_xvimage_new):
      * tests/check/elements/volume.c: (GST_START_TEST):
      Printf format fixes.
      9e107d67
  23. 30 Sep, 2006 1 commit
    • Jan Schmidt's avatar
      gst/playback/gstdecodebin.c: Fix typo in a debug statement. · e2a039a5
      Jan Schmidt authored
      Original commit message from CVS:
      * gst/playback/gstdecodebin.c: (close_pad_link):
      Fix typo in a debug statement.
      * gst/playback/gstplaybasebin.c: (probe_triggered),
      (new_decoded_pad_full), (new_decoded_pad), (subs_new_decoded_pad),
      (gen_source_element), (source_new_pad), (analyse_source),
      (setup_source):
      When handling no_more_pads in new_decoded_pad, make sure to treat
      subtitle pads correctly. Fixes playback with subtitle files.
      Move a recurring message to LOG level.
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_xv_support):
      The maximum value for the Xv colorkey on this Radeon is 0xFFFFFFFF,
      which ends up as -1 when cast to an int. Make the logic handle the
      max value as an unsigned mask and only change the colorkey when it's
      a value we recognise.
      e2a039a5
  24. 20 Sep, 2006 1 commit
  25. 19 Sep, 2006 1 commit
    • Wim Taymans's avatar
      gst-libs/gst/riff/riff-media.c: Reorder the audio formats a bit for clarity. · 3edec592
      Wim Taymans authored
      Original commit message from CVS:
      * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps),
      (gst_riff_create_audio_template_caps):
      Reorder the audio formats a bit for clarity.
      Detect and create caps for MSGSM and MSN (WAV49).
      Fixes #356596.
      * sys/xvimage/xvimagesink.c: (gst_xvimage_buffer_destroy),
      (gst_xvimagesink_check_xshm_calls), (gst_xvimagesink_xvimage_new),
      (gst_xvimagesink_get_xv_support), (gst_xvimagesink_show_frame):
      Small cleanups, move error handling out of normal flow for clarity.
      3edec592
  26. 18 Sep, 2006 2 commits
  27. 15 Aug, 2006 1 commit
    • Tim-Philipp Müller's avatar
      sys/: Fix leak (#351502). · f65205ed
      Tim-Philipp Müller authored
      Original commit message from CVS:
      * sys/ximage/ximagesink.c: (gst_ximagesink_get_property):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_property):
      Fix leak (#351502).
      f65205ed
  28. 13 Jul, 2006 3 commits
    • Jan Schmidt's avatar
      sys/xvimage/xvimagesink.c: Fix missing g_unlock from the previous commit · a4dd5b37
      Jan Schmidt authored
      Original commit message from CVS:
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new):
      Fix missing g_unlock from the previous commit
      a4dd5b37
    • Jan Schmidt's avatar
      sys/: Implement a locking order to ensure we always take the object lock... · e9a7a5e6
      Jan Schmidt authored
      sys/: Implement a locking order to ensure we always take the object lock before the x_lock and never vice-versa.
      
      Original commit message from CVS:
      * sys/ximage/ximagesink.c: (gst_ximagesink_ximage_new),
      (gst_ximagesink_change_state):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new),
      (gst_xvimagesink_change_state):
      Implement a locking order to ensure we always take the object lock
      before the x_lock and never vice-versa.
      e9a7a5e6
    • Jan Schmidt's avatar
      gst/playback/gstdecodebin.c: Fix a caps leak when linking (#347304) · 435fd245
      Jan Schmidt authored
      Original commit message from CVS:
      * gst/playback/gstdecodebin.c: (find_compatibles):
      Fix a caps leak when linking (#347304)
      * sys/ximage/ximagesink.c: (gst_ximage_buffer_finalize),
      (gst_ximagesink_ximage_destroy), (gst_ximagesink_xcontext_clear),
      (gst_ximagesink_change_state):
      * sys/xvimage/xvimagesink.c: (gst_xvimage_buffer_destroy),
      (gst_xvimage_buffer_finalize), (gst_xvimagesink_check_xshm_calls),
      (gst_xvimagesink_xvimage_new), (gst_xvimagesink_xvimage_put),
      (gst_xvimagesink_xcontext_clear), (gst_xvimagesink_change_state):
      Don't leak shared memory resources. Use the object lock to protect
      against the xcontext disappearing while returning a buffer from the
      pipeline. (#347304)
      435fd245
  29. 26 May, 2006 1 commit
    • Jan Schmidt's avatar
      sys/xvimage/xvimagesink.c: Improve the errors produced on bad output,... · c1236503
      Jan Schmidt authored
      sys/xvimage/xvimagesink.c: Improve the errors produced on bad output, including some human readable description strings.
      
      Original commit message from CVS:
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new),
      (gst_xvimagesink_get_xv_support), (gst_xvimagesink_xcontext_get),
      (gst_xvimagesink_get_format_from_caps), (gst_xvimagesink_setcaps),
      (gst_xvimagesink_show_frame), (gst_xvimagesink_buffer_alloc):
      Improve the errors produced on bad output, including some human
      readable description strings.
      Handle RGB Xv formats properly by transforming them into our
      big-endian caps description.
      Use gst_caps_truncate to ensure that we never try and choose a
      non-fixed caps in buffer_alloc.
      Handle the case where the XServer has a different idea about the size
      required for a particular frame and gives us too small a memory
      allocation.
      Use -1 to indicate 'no image format', because 0 is a valid XServer
      image format number.
      Put RGB Xv formats at the end of the caps, so that we always prefer
      YUV format frames.
      Iterate the available Xv Encodings to determine the maximum width and
      height, and then return that in our caps.
      c1236503
  30. 19 May, 2006 2 commits
    • Jan Schmidt's avatar
      Use the gstutil scaling function to preserve 64 bits while calculating output... · f3b81a7d
      Jan Schmidt authored
      Use the gstutil scaling function to preserve 64 bits while calculating output width and height from the display-aspec...
      
      Original commit message from CVS:
      * gst/videoscale/gstvideoscale.c: (gst_video_scale_fixate_caps):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_setcaps):
      Use the gstutil scaling function to preserve 64 bits while calculating
      output width and height from the display-aspect-ratio. (A continuation
      of #341542)
      f3b81a7d
    • Jan Schmidt's avatar
      sys/xvimage/xvimagesink.*: When performing buffer allocations, remember the... · 47e7f3f3
      Jan Schmidt authored
      sys/xvimage/xvimagesink.*: When performing buffer allocations, remember the caps and image format we return so that i...
      
      Original commit message from CVS:
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xcontext_clear),
      (gst_xvimagesink_buffer_alloc):
      * sys/xvimage/xvimagesink.h:
      When performing buffer allocations, remember the caps and image format
      we return so that if the same caps are asked for next time we can
      return them immediately without doing any caps intersections.
      47e7f3f3
  31. 12 May, 2006 2 commits
    • Jan Schmidt's avatar
      Fix the build. · 143af467
      Jan Schmidt authored
      Original commit message from CVS:
      * gst/videoscale/gstvideoscale.c: (gst_video_scale_fixate_caps):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_setcaps):
      Fix the build.
      143af467
    • Jan Schmidt's avatar
      Fix integer overflow problem with pixel-aspect-ratio calculations in... · 34db0838
      Jan Schmidt authored
      Fix integer overflow problem with pixel-aspect-ratio calculations in videoscale and xvimagesink (#341542)
      
      Original commit message from CVS:
      * docs/libs/gst-plugins-base-libs-docs.sgml:
      * docs/libs/gst-plugins-base-libs-sections.txt:
      * gst-libs/gst/video/video.c: (gst_video_calculate_display_ratio):
      * gst-libs/gst/video/video.h:
      * gst/videoscale/Makefile.am:
      * gst/videoscale/gstvideoscale.c: (gst_video_scale_fixate_caps):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_setcaps):
      * tests/check/Makefile.am:
      * tests/check/libs/video.c: (GST_START_TEST), (video_suite),
      (main):
      Fix integer overflow problem with pixel-aspect-ratio calculations
      in videoscale and xvimagesink (#341542)
      34db0838
  32. 11 May, 2006 1 commit
    • Wim Taymans's avatar
      sys/: Register special buffer types along with the objects so that they are... · 1f6e29bc
      Wim Taymans authored
      sys/: Register special buffer types along with the objects so that they are not registered at runtime from N differen...
      
      Original commit message from CVS:
      * sys/ximage/ximagesink.c: (gst_ximagesink_get_type):
      * sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_type):
      Register special buffer types along with the objects so
      that they are not registered at runtime from N different
      streaming threads since they are not threadsafe.
      1f6e29bc