Class: ActiveVlc::LibVlc::InstancePtr

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/activevlc/libvlc/instance.rb

Overview

This is just a hack to have the libvlc_instance released when the Instance class is GC’ed

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object



7
8
9
10
# File 'lib/activevlc/libvlc/instance.rb', line 7

def self.release(ptr)
  #puts "Releasing an InstancePtr #{ptr.inspect}"
  Api.libvlc_release(ptr)
end