gmyth-stream/gmemcoder/src/main.c
branchtrunk
changeset 769 1603bc7804da
parent 760 36b8564d10e6
child 777 4127375c2a03
     1.1 --- a/gmyth-stream/gmemcoder/src/main.c	Tue Jun 26 15:00:45 2007 +0100
     1.2 +++ b/gmyth-stream/gmemcoder/src/main.c	Tue Jul 03 21:20:15 2007 +0100
     1.3 @@ -26,6 +26,7 @@
     1.4  static double   audio_rate = 0.0;
     1.5  static gchar   *mux_name = NULL;
     1.6  static gchar   *output_uri = NULL;
     1.7 +static gboolean chunked = FALSE;
     1.8  
     1.9  
    1.10  
    1.11 @@ -121,6 +122,9 @@
    1.12          {"output-uri", 'o', 0, G_OPTION_ARG_STRING, &output_uri,
    1.13           "Uri to output", NULL},
    1.14  
    1.15 +	{"chunked", 'c', 0, G_OPTION_ARG_NONE, &chunked, 
    1.16 +         "Send package chunked", NULL},
    1.17 +
    1.18          {NULL}
    1.19      };
    1.20  
    1.21 @@ -162,7 +166,7 @@
    1.22          vopts = NULL;
    1.23  
    1.24      
    1.25 -    ret = g_mencoder_setup_stream(coder, mux_name,
    1.26 +    ret = g_mencoder_setup_stream(coder, chunked, mux_name,
    1.27                                    video_encode, vopts, video_fps,
    1.28                                    video_rate, video_width, video_height,
    1.29                                    audio_encode, aopts, audio_rate, output_uri);