*** This bug is a duplicate of bug 104651 ***
https://bugs.launchpad.net/bugs/104651
#include <unistd.h>
#include <xine.h>
#include<stdio.h>
#define MRL "dump_ts3"
/*using namespace std;*/
int main(int argc, char **argv)
{
char *mrl = MRL;
xine_t *engine;
xine_audio_port_t *ap;
xine_video_port_t *vp;
xine_stream_t *stream;
engine = xine_new();
xine_init(engine);
ap = xine_open_audio_driver(engine, NULL, NULL);
//vp = xine_open_video_driver(engine, NULL, XINE_VISUAL_TYPE_NONE, NULL);
vp = xine_new_framegrab_video_port (engine);
if(vp == NULL) {
printf("****null vp***\n");
return;
}
stream = xine_stream_new(engine, ap, vp);
xine_open(stream, mrl);
xine_play(stream, 0, 0);
int posStream;
int pos;
int length;
xine_get_pos_length (stream, &posStream, &pos, &length);
xine_video_frame_t *myframe;
myframe = malloc(sizeof(xine_video_frame_t));
while(1)
{
xine_get_next_video_frame (vp,myframe);
printf("doing something\n");
}
/*cout << "Time = " << pos << " of " << length << "\n";*/
xine_close(stream);
xine_close_audio_driver(engine, ap);
xine_close_video_driver(engine, vp);
xine_exit(engine);
return 0;
}
and here is the error as shown in gdb
(gdb) b main
Breakpoint 2 at 0x80486dd: file newzine.c, line 12.
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/bhavin/TRY_TRY/util/dvb-apps/util/szap/newzine
[Thread debugging using libthread_db enabled]
Breakpoint 2, main (argc=1, argv=0xbffff2e4) at newzine.c:12
12 char *mrl = MRL;
(gdb) n
19 engine = xine_new();
(gdb)
20 xine_init(engine);
(gdb)
[New Thread 0xb7fd9b70 (LWP 11379)]
22 ap = xine_open_audio_driver(engine, NULL, NULL);
(gdb)
[New Thread 0xb75d8b70 (LWP 11380)]
[New Thread 0xb29ffb70 (LWP 11381)]
24 vp = xine_new_framegrab_video_port (engine);
(gdb)
25 if(vp == NULL) {
(gdb)
30 stream = xine_stream_new(engine, ap, vp);
(gdb)
[New Thread 0xb180ab70 (LWP 11382)]
[New Thread 0xb0c3cb70 (LWP 11383)]
32 xine_open(stream, mrl);
(gdb)
34 xine_play(stream, 0, 0);
(gdb)
[New Thread 0xb023bb70 (LWP 11384)]
41 xine_get_pos_length (stream, &posStream, &pos, &length);
(gdb)
43 myframe = malloc(sizeof(xine_video_frame_t));
(gdb)
47 xine_get_next_video_frame (vp,myframe);
(gdb)
Program received signal SIGSEGV, Segmentation fault.
0x05392710 in xine_list_get_value () from /usr/lib/libxine.so.1
(gdb)
Single stepping until exit from function xine_list_get_value,
which has no line number information.
[Thread 0xb023bb70 (LWP 11384) exited]
[Thread 0xb180ab70 (LWP 11382) exited]
[Thread 0xb29ffb70 (LWP 11381) exited]
[Thread 0xb75d8b70 (LWP 11380) exited]
[Thread 0xb7fd9b70 (LWP 11379) exited]
[Thread 0xb0c3cb70 (LWP 11383) exited]
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/104599
Title:
[apport] totem-video-thumbnailer crashed with SIGSEGV in
xine_list_get_value()
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xine-lib/+bug/104599/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs