mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
11ff1a3b97
commit
4b447f44d8
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue