mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-04 16:39:39 +00:00
16 lines
382 B
C
16 lines
382 B
C
|
#include <glib.h>
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
#include <fcntl.h>
|
||
|
#include <gst/gsttrace.h>
|
||
|
|
||
|
int main(int argc,char *argv[]) {
|
||
|
gchar *filename = argv[1];
|
||
|
int fd = open(filename,O_RDONLY);
|
||
|
GstTraceEntry entry;
|
||
|
|
||
|
while (read(fd,&entry,sizeof(entry)))
|
||
|
g_print("%Ld(%ld) 0x%08lx: %s\n",entry.timestamp,entry.sequence,
|
||
|
entry.data,entry.message);
|
||
|
}
|