Skip to content

Instantly share code, notes, and snippets.

View hnwfs's full-sized avatar

Lineo Magyarország hnwfs

View GitHub Profile
@hnwfs
hnwfs / main.c
Last active July 17, 2017 08:47
Szentkorona online radio player v 1
#include <gst/gst.h>
// build: gcc main.c -o netradio_00 `pkg-config gstreamer-1.0 --libs --cflags`
int main(int argc, char *argv[]) {
GstElement *pipeline;
GstMessage *message;
GstBus *bus;
@hnwfs
hnwfs / main.c
Last active August 8, 2019 12:33
Szentkorona online radio player v 2
#include <glib.h>
#include <gst/gst.h>
// compile:
//
// gcc main.c -o netradio_01 `pkg-config gstreamer-1.0 --libs --cflags`
static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer data) {
GMainLoop *loop = (GMainLoop *) data;