Skip to content

Instantly share code, notes, and snippets.

@yujuwon
Created July 15, 2013 06:00
Show Gist options
  • Select an option

  • Save yujuwon/5997788 to your computer and use it in GitHub Desktop.

Select an option

Save yujuwon/5997788 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <gst/gst.h>
int main(int argc, char* argv[]){
const gchar *nano_str;
guint major, minor, micro, nano;
gst_init(&argc, &argv);
gst_version(&major, &minor, &micro, &nano);
if(nano == 1)
nano_str = "(CVS)";
else if(nano == 2)
nano_str = "(Prerelease)";
else
nano_str = "";
printf ("This program is linked against GStreamer %d.%d.%d %s\n", major, minor, micro, nano_str);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment