All pastes #1376307 Raw Edit

vikky

public c v1 · immutable
#1376307 ·published 2009-03-29 23:44 UTC
rendered paste body
#include <xine.h>#include <stdio.h>int main(){	xine_t *xine;	xine_stream_t * mstream;	int rv;	char *url = "/home/vikky/Shared/Dave Matthews Band - Two Step.mp3";	xine = xine_new();	xine_config_load(xine, "/home/vikky/.xine/config");	xine_init(xine);	mstream = xine_stream_new(xine, NULL,NULL);	printf("Status: %i\n",xine_get_error(mstream));	if(!mstream){		printf("stream error\n");		return 1;	}	rv = xine_open(mstream, url);	printf("title=%s\n",xine_get_meta_info (mstream,XINE_META_INFO_TITLE ));	xine_close(mstream);		xine_dispose(mstream);	xine_exit(xine);	printf("return 0;\n");	return 0;}<> gcc test2.c -lxine -g<> ./a.out Status: 0title=Two Stepreturn 0;Segmentation fault(gdb) bt#0  0x00007fffedf7388d in ?? () from /lib64/libselinux.so.1#1  0x00007fffedf6629f in selinux_file_context_cmp () from /lib64/libselinux.so.1#2  0x0000000000000000 in ?? ()(gdb)