[vlc-devel] libvlc Issues and Questions

Rov Juvano rovjuvano at users.sourceforge.net
Sun Jun 15 16:53:02 CEST 2008


On Sun, Jun 15, 2008 at 07:59:56PM +1000, mlist at marxbitware.com wrote:
> 4.  Getting Current Position
>
> libvlc_media_player_get_position returns 0.

It's just passing along the information.  Something lower
down is returning 0. demuxer? decoder?  To see what objects
are used, increase the verosbity with libvlc_set_log_verbosity
or if you can compile against the source, include vlc_object.h
and use vlc_object_dump( p_libvlc ).


> 5.  Getting the length of currently playing media
>
> There doesn't appear to be a media_player function for this.

What about libvlc_media_player_get_length or libvlc_media_get_duration?


> 6.  Media_player Navigation
>
> Unable to locate Next, Previous, etc.  Is there a different
> interface???  I've seen set_chapter() and and audio_set_track(), must
> these be used instead?

libvlc_media_list_player_next


> 8.  Stop does not function as expected
>
> In previous versions of the libvlc API, calling the stop function
> would return the output window to its previous state.
> libvlc_media_player_stop has the effect of leaving the loaded media in
> the window frozen at the point when it was called.

Same here.


> 9. libvlc_release()
>
> Calling this results in an exception being generated.  It states that
> libvlc was asked to quit in an unexpected fashion.

Are you attaching events?

For me, glibc reports "double free or corruption" in libvlc_event_manager_release

Valgrind gives:
==3836== Invalid free() / delete / delete[]
==3836==    at 0x402265C: free (vg_replace_malloc.c:323)
==3836==    by 0x4646649: libvlc_event_manager_release (event.c:107)
==3836==    by 0x4649B47: libvlc_media_player_release (media_player.c:494)
==3836==  Address 0x7b888b0 is 0 bytes inside a block of size 16 free'd
==3836==    at 0x402265C: free (vg_replace_malloc.c:323)
==3836==    by 0x4646619: libvlc_event_manager_release (event.c:104)
==3836==    by 0x4649B47: libvlc_media_player_release (media_player.c:494)

If I detach the events before releasing, all is well.


--
rovjuvano




More information about the vlc-devel mailing list