playbin_bus_call   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm

Implementation

(bind-func playbin_bus_call:[void,GstElement*,GstMessage*,userdata*]*
  (lambda (bus msg data)
    (let ((playz (tref (cast data userdata*) 1))
          (msgtype (tref msg 1))
          (time (tref msg 2))
          (seq (tref msg 4)))
      (cond ((<> (& GST_MESSAGE_EOS msgtype) 0)
             (printf "END OF STREAM!\n")
             (gst_element_set_state playz GST_STATE_NULL)
             (gst_object_unref (cast playz gpointer)) ;; does playz release sink?
             (free data)
             1))
      void)))


Back to Index

Similar Entries

  • PaStreamCallbackTimeInfo_print    xtlang
  • PaStreamCallbackTimeInfo_toString    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _gst_main_loop_call    xtlang
  • _playbin_bus_call:GstBusFunc    xtlang
  • audio_callback:PaStreamCallback    xtlang
  • audio_callback:PaStreamCallback    xtlang
  • call-as-xtlang    macro
  • call-as-xtlang-leaky    macro
  • call-cpp    scheme
  • call-with-input-file    scheme
  • call-with-output-file    scheme
  • call/cc    scheme
  • call_object    xtlang
  • callback    scheme
  • callback-adapter    scheme
  • callback-test2-helper    xtlang
  • callback_goodbye_world    xtlang
  • callback_hello_world    xtlang
  • clock_scheduler_main_callback    xtlang
  • curl_write_callback    xtlang
  • glfw_char_callback:GLFWcharfun    xtlang
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang
  • glfw_error_callback:GLFWerrorfun    xtlang
  • glfw_key_callback:GLFWkeyfun    xtlang
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang
  • glfw_window_position_callback:GLFWwindowposfun    xtlang
  • godot_call    xtlang
  • godot_call    xtlang
  • godot_call    xtlang
  • godot_call    xtlang
  • godot_method_bind_call    xtlang
  • godot_method_bind_ptrcall    xtlang
  • gui_window_size_callback    xtlang
  • impc:ir:compiler:callback    scheme
  • impc:ir:compiler:fptrcall    scheme
  • impc:ir:compiler:native-call    scheme
  • impc:ir:function-calling-convention    scheme
  • impc:ti:callback    scheme
  • impc:ti:callback-check    scheme
  • impc:ti:closure-call-check    scheme
  • impc:ti:fptrcall-check    scheme
  • impc:ti:fptrcall-check    scheme
  • ipc:call    scheme
  • ipc:mapcall    scheme
  • listener-callback    scheme
  • playbin_bus_call:GstBusFunc    xtlang
  • rtmidi_default_callback:RtMidiCCallback    xtlang
  • rtmidi_register_callback    xtlang
  • stbi_flip_vertically    xtlang
  • thread_native_call    xtlang
  • thread_native_call_with_zone    xtlang