1 print usage if no args 2 fix cast to avoid compile warning

Original commit message from CVS:
1 print usage if no args
2 fix cast to avoid compile warning
This commit is contained in:
Joshua N. Pritikin 2001-09-13 01:17:47 +00:00
parent 11ff1a3b97
commit 4b447f44d8

View file

@ -131,7 +131,7 @@ void mpeg2parse_newpad(GstElement *parser,GstPad *pad, GstElement *pipeline) {
appwindow = gnome_app_new("MPEG player","MPEG player");
gnome_app_set_contents(GNOME_APP(appwindow),
gst_util_get_pointer_arg(GTK_OBJECT(show),"widget"));
gst_util_get_pointer_arg(G_OBJECT(show),"widget"));
gtk_widget_show_all(appwindow);
// create the thread and pack stuff into it
@ -175,6 +175,12 @@ int main(int argc,char *argv[]) {
GstPipeline *pipeline;
GstElement *src, *parse;
if (argc < 2)
{
g_printerr ("usage: mpeg2parse vobfile.vob\n");
return 1;
}
g_print("have %d args\n",argc);
g_thread_init(NULL);