mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
fixed an odd case with the launcher, didn't deal with argc properly
Original commit message from CVS: fixed an odd case with the launcher, didn't deal with argc properly
This commit is contained in:
parent
a72f9832d1
commit
3c288c183a
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
bin_PROGRAMS = gstreamer-launch gstreamer-register gstreamer-inspect
|
||||
|
||||
LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/gst/libgst.la
|
||||
INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir)
|
||||
LDADD = $(GST_LIBS)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ int main(int argc,char *argv[]) {
|
|||
|
||||
// make a null-terminated version of argv
|
||||
argvn = g_new0(char *,argc);
|
||||
memcpy(argvn,argv+1,sizeof(char*)*argc);
|
||||
memcpy(argvn,argv+1,sizeof(char*)*(argc-1));
|
||||
// join the argvs together
|
||||
cmdline = g_strjoinv(" ",argvn);
|
||||
// free the null-terminated argv
|
||||
|
|
Loading…
Reference in a new issue