General discussion

Here you can discuss everything related to MOC which doesn't fit other subforum.

Theme does not save

theme does not save after i quit ori just leave the mocp screen. (using q and Q)

Segfault when try to seek

Hello,

When I try to seek with the command "mocp -k 10", it's give me a segfault.
I use Debian testing with the latest updates, my mocp version is 2.5.0-alpha3, install from Debian repository.
I start mocp with debug switch(mocp -D), play a song and on another terminal try to seek, here is the result:
http://szakadek.extra.hu/mocp.tar.bz2

What kind of information do you need to help me?
It's a very important feature for me.
Thanks.

birno

lynx like movement?

Hi all

i just discovered moc player through crunchbang linux and love it!

one thing i cant figure out (and if missing would love to have) is a lynx like movement with the arrows (like in midnight commander) that is the left arrow would bring me back to the upper dir and the right arrow would enter the dir it stands on

is this possible?

thx

Zeltak

How to pathes ffmpeg

How to pathes ffmpeg this moc-wavpack-28.04.07.patch. Moc ver 2.4.4 is not play wv(wavpack) files ?

Randomize the playlist ?

I've been using moc for years now - it is quite possibly the finest audio player known to this planet.

One thing I've missed in moc though is a randomize playlist feature. If this ability already exists, I can't seem to find it. I see the shuffle option - shuffle leaves the listener not knowing what song will be played next. It's a good feature - though sometimes I just wish to hit a key several times and watch the playlist randomized.

I'm a C novice - but I'd be happy to assist in implementing such a feature. I'd possibly need to be guided in the right direction. I imagine that a randomize list function would probably consist of just a dozen or so lines of code.

thanks..!

vook

Continuous Play?

How do you enable continuous play?

home folder is separate from music files

I have almost all music outside my home folder.
How do I direct moc to other directories?

Using Ubuntu 9.4 Jaunty
(Also, I don't see the conf.example anywhere in the .moc folder)

Crash caused by lyric feature

Noticed a bug in the code today which kept causing moc to crash in strange ways. (SVN revision 2161)

Turns out it was becaused of the strncpy in lyrics.c. The code has a const FILENAME_SIZE (set at 200), and uses this to allocate the lyrics_filename buffer, but then in the lyrics_remove_prefix function, the strncpy uses the strlen of the filename. This means if the filename is > 200 characters, then the strncpy will overwrite the memory after the buffer and cause a nasty crash.

I would suggest simply changing the xmalloc at line 64 from:

lyrics_filename = xmalloc (sizeof(char) * FILENAME_SIZE);

to:

lyrics_filename = xmalloc (sizeof(char) * (strlen(filename) + 1));

Its either that, or add some strlen(filename) > FILENAME_SIZE check in the lyrics_remove_prefix function, but the first
method should be more flexible.

I've also never used lyrics, so I havent come accross any issues - but there seems to be a similar issue where the lyri
cs array at the top of the file is pre-allocated using a fixed constant, but then on line 71 when the lyrics file is re
ad in, a while(fgets()) is used, with no bounds checking for the array. Again, this means a lyrics file with more than
128 lines would cause moc to crash.

Pages

Subscribe to RSS - General discussion