]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
Progress in O_DIRECT handling - not completed
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 May 2010 21:43:17 +0000 (23:43 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 May 2010 21:43:17 +0000 (23:43 +0200)
build-no-frsh/cmd.gdb
src/ffmpeg
src/recorder/ffmpeg.c

index 6e65f616fc747779f1347b23ae37b74661fcb4d2..eae55298d54de079e96238eaedf71a2dee7c6f15 100644 (file)
@@ -1,7 +1,9 @@
 file /home/wsh/frescor/demo/build-no-frsh/_compiled/bin/recorder
+b url_fopen
 b url_fdopen
 b file_open
-b file_write
 b av_interleaved_write_frame
-#run -s 640x480 -r 15 -f video4linux2 -i /dev/video0
-run -s 320x240 -f video4linux2 -i /dev/video0
+# b file_write
+# b av_interleaved_write_frame
+run -s 640x480 -r 15 -f video4linux2 -i /dev/video0
+#run -s 320x240 -f video4linux2 -i /dev/video0
index d62e9c13e11e60fc2dd7363336d0018f3a103e41..77b0842e4959363e840f573192cccd6e4ac40cb9 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d62e9c13e11e60fc2dd7363336d0018f3a103e41
+Subproject commit 77b0842e4959363e840f573192cccd6e4ac40cb9
index 7c01754e603f405d81f5ff3a6ad620af335aa065..f6252571bd8e1b5dcd76a569a6428e95fdff9619 100644 (file)
@@ -3505,10 +3505,22 @@ static void opt_output_file(const char *filename)
         }
 
         /* open the file */
-        if (url_fopen(&oc->pb, filename, URL_WRONLY) < 0) {
+        if (url_fopen(&oc->pb, filename, URL_WRONLY|URL_DIRECT) < 0) {
             fprintf(stderr, "Could not open '%s'\n", filename);
             av_exit(1);
         }
+
+       if (0) {
+               int i;
+               for (i=0; i<0x81; i++) {
+                       put_le32(oc->pb, i);
+                       if (i==0x42)
+                               put_flush_packet(oc->pb);
+               }
+               url_close_buf(oc->pb);
+               url_fclose(oc->pb);
+               exit(0);
+       }
     }
 
     memset(ap, 0, sizeof(*ap));