This is the output:
The error always comes after 'removing module "swscale"'![0x901c88] main playlist debug: incoming request - stopping current input
[0x7f0d0c003b68] main input debug: control: stopping input
[0x901c88] main playlist debug: incoming request - stopping current input
[0x901c88] main playlist debug: finished input
[0x7f0d04d49c38] main decoder debug: removing module "avcodec"
[0x7f0d04d49c38] avcodec decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped
[0x7f0d04d49c38] main decoder debug: killing decoder fourcc `h264', 0 PES in FIFO
[0x901c88] main playlist debug: saving a free vout
[0x901c88] main playlist debug: reusing provided vout
[0x7f0d04c5ca78] main decoder debug: removing module "dts"
[0x7f0d04c5ca78] main decoder debug: killing decoder fourcc `dts ', 0 PES in FIFO
[0x7f0d04c01658] main demux debug: removing module "mkv"
[0x7f0d0c003b68] main input debug: Program doesn't contain anymore ES
[0x7f0d04c01658] mkv demux debug: Stopping the UI Hook
[0x7f0d04001258] main access debug: removing module "filesystem"
[0x901c88] main playlist debug: incoming request - stopping current input
[0x901c88] main playlist debug: dead input
[0x7f0cf83f3198] main video output debug: destroying useless vout
[0x7f0ce0011bf8] main blend debug: removing module "blend"
[0x7f0ce0001248] main vout display debug: removing module "xcb_xv"
[0x7f0ce0004318] dbus_screensaver inhibit debug: got cookie 772774605
[0x7f0ce0004318] main inhibit debug: removing module "dbus_screensaver"
[0x7f0ce00040a8] qt4 window debug: releasing video...
[0x9bb638] qt4 interface debug: IM: Deleting the input
[0x9bb638] qt4 interface debug: Video is not needed anymore
[0x7f0cf83f3e48] main spu text debug: removing module "freetype"
[0x7f0cf841e0f8] main scale debug: removing module "yuvp"
[0x7f0cf8400e98] main scale debug: removing module "swscale"
(vlc:5958): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Is this related to ffmpeg? I am using ffmpeg 2.0.1.