|
多调用几次play_next就会出现下面的错误。
- void be_ready_to_play()
- {
- xine=xine_new();
- xine_init(xine);
- ap=xine_open_audio_driver (xine, NULL,NULL);
- stream=xine_stream_new(xine,ap,NULL);
- }
- .....
- char str[256];
- void play_next(){
- xine_stop(stream);
- xine_close(stream);
- xine_open(stream,str);
- xine_play(stream,0,0);
- is_playing=1;
- }
复制代码
- *** glibc detected *** project: free(): invalid pointer: 0x083758b8 ***
- ======= Backtrace: =========
- /lib/libc.so.6[0xb765a654]
- /lib/libc.so.6(cfree+0x9c)[0xb765bf3c]
- /usr/lib/libglib-2.0.so.0(g_free+0x36)[0xb77ed026]
- /usr/lib/libgdk-x11-2.0.so.0[0xb7b6a13c]
- /usr/lib/libgdk-x11-2.0.so.0(gdk_cursor_unref+0x32)[0xb7b45c32]
- /usr/lib/libgdk-x11-2.0.so.0[0xb7b8ee53]
- /usr/lib/libgobject-2.0.so.0(g_object_unref+0x173)[0xb7881ef3]
- /usr/lib/libgdk-x11-2.0.so.0[0xb7b60031]
- /usr/lib/libgobject-2.0.so.0(g_object_unref+0x173)[0xb7881ef3]
- /usr/lib/libgdk-x11-2.0.so.0[0xb7b76386]
- /usr/lib/libgdk-x11-2.0.so.0[0xb7b78273]
- /usr/lib/libgdk-x11-2.0.so.0[0xb7b7869f]
- /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e8)[0xb77e49a8]
- /usr/lib/libglib-2.0.so.0[0xb77e8063]
- /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1d2)[0xb77e8582]
- /usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9)[0xb7ceefc9]
- project[0x804a857]
- /lib/libc.so.6(__libc_start_main+0xe5)[0xb7604705]
- project[0x804a1d1]
- ======= Memory map: ========
- 08048000-0804e000 r-xp 00000000 08:02 1278695 /home/wind/project/player/project
- 0804e000-0804f000 r--p 00005000 08:02 1278695 /home/wind/project/player/project
- 0804f000-08050000 rw-p 00006000 08:02 1278695 /home/wind/project/player/project
- 08050000-08479000 rw-p 08050000 00:00 0 [heap]
- a9400000-a9421000 rw-p a9400000 00:00 0
- a9421000-a9500000 ---p a9421000 00:00 0
- a952b000-a952c000 ---p a952b000 00:00 0
- a952c000-a9d2c000 rwxp a952c000 00:00 0
- a9d2c000-a9d80000 r-xp 00000000 08:02 878776 /usr/lib/libFLAC.so.8.2.0
- a9d80000-a9d81000 r--p 00053000 08:02 878776 /usr/lib/libFLAC.so.8.2.0
- a9d81000-a9d82000 rw-p 00054000 08:02 878776 /usr/lib/libFLAC.so.8.2.0
- a9d8b000-a9da1000 r-xp 00000000 08:02 983721 /usr/lib/xine/plugins/1.24/xineplug_decode_mad.so
- a9da1000-a9da2000 r--p 00015000 08:02 983721 /usr/lib/xine/plugins/1.24/xineplug_decode_mad.so
- a9da2000-a9da3000 rw-p 00016000 08:02 983721 /usr/lib/xine/plugins/1.24/xineplug_decode_mad.so
- a9da3000-a9da6000 r-xp 00000000 08:02 983321 /usr/lib/xine/plugins/1.24/xineplug_flac.so
- a9da6000-a9da7000 r--p 00002000 08:02 983321 /usr/lib/xine/plugins/1.24/xineplug_flac.so
- a9da7000-a9da8000 rw-p 00003000 08:02 983321 /usr/lib/xine/plugins/1.24/xineplug_flac.so
- a9da8000-a9daf000 r-xp 00000000 08:02 983319 /usr/lib/xine/plugins/1.24/xineplug_dmx_sputext.so
- a9daf000-a9db0000 r--p 00006000 08:02 983319 /usr/lib/xine/plugins/1.24/xineplug_dmx_sputext.so
- a9db0000-a9db1000 rw-p 00007000 08:02 983319 /usr/lib/xine/plugins/1.24/xineplug_dmx_sputext.so
- a9db1000-a9db2000 r-xp 00000000 08:02 983320 /usr/lib/xine/plugins/1.24/xineplug_dmx_yuv_frames.so
- a9db2000-a9db3000 r--p 00000000 08:02 983320 /usr/lib/xine/plugins/1.24/xineplug_dmx_yuv_frames.so
- a9db3000-a9db4000 rw-p 00001000 08:02 983320 /usr/lib/xine/plugins/1.24/xineplug_dmx_yuv_frames.so
- a9db4000-a9db6000 r-xp 00000000 08:02 983316 /usr/lib/xine/plugins/1.24/xineplug_dmx_rawdv.so
- a9db6000-a9db7000 r--p 00001000 08:02 983316 /usr/lib/xine/plugins/1.24/xineplug_dmx_rawdv.so
- a9db7000-a9db8000 rw-p 00002000 08:02 983316 /usr/lib/xine/plugins/1.24/xineplug_dmx_rawdv.so
- a9db8000-a9dbd000 r-xp 00000000 08:02 983730 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg.so
- a9dbd000-a9dbe000 r--p 00004000 08:02 983730 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg.so
- a9dbe000-a9dbf000 rw-p 00005000 08:02 983730 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg.so
- a9dbf000-a9dc4000 r-xp 00000000 08:02 983734 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg_ts.so
- a9dc4000-a9dc5000 r--p 00004000 08:02 983734 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg_ts.so
- a9dc5000-a9dc6000 rw-p 00005000 08:02 983734 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg_ts.so
- a9dc6000-a9dca000 r-xp 00000000 08:02 983731 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg_block.so
- a9dca000-a9dcb000 r--p 00003000 08:02 983731 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg_block.so
- a9dcb000-a9dcc000 rw-p 00004000 08:02 983731 /usr/lib/xine/plugins/1.24/xineplug_dmx_mpeg_block.so
- a9dcc000-a9dce000 r-xp 00000000 08:02 983312 /usr/lib/xine/plugins/1.24/xineplug_dmx_nsv.so
- a9dce000-a9dcf000 r--p 00001000 08:02 983312 /usr/lib/xine/plugins/1.24/xineplug_dmx_nsv.so
- a9dcf000-a9dd0000 rw-p 00002000 08:02 983312 /usr/lib/xine/plugins/1.24/xineplug_dmx_nsv.so
- a9dd0000-a9dd9000 r-xp 00000000 08:02 983310 /usr/lib/xine/plugins/1.24/xineplug_dmx_matroska.so
- a9dd9000-a9dda000 r--p 00008000 08:02 983310 /usr/lib/xine/plugins/1.24/xineplug_dmx_matroska.so
- a9dda000-a9ddb000 rw-p 00009000 08:02 983310 /usr/lib/xine/plugins/1.24/xineplug_dmx_matroska.so
- a9ddb000-a9ddd000 r-xp 00000000 08:02 983305 /usr/lib/xine/plugins/1.24/xineplug_dmx_fli.so
- a9ddd000-a9dde000 r--p 00001000 08:02 983305 /us已放弃
复制代码 |
|