gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9657: work with the latest FLV that


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9657: work with the latest FLV that uses shared_ptrs
Date: Mon, 22 Sep 2008 11:21:57 -0600
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9657
committer: address@hidden
branch nick: rtmp
timestamp: Mon 2008-09-22 11:21:57 -0600
message:
  work with the latest FLV that uses shared_ptrs
modified:
  utilities/flvdumper.cpp
=== modified file 'utilities/flvdumper.cpp'
--- a/utilities/flvdumper.cpp   2008-09-22 01:03:07 +0000
+++ b/utilities/flvdumper.cpp   2008-09-22 17:21:57 +0000
@@ -173,9 +173,9 @@
     struct stat st;
     Network::byte_t *buf = 0;
     Network::byte_t *ptr = 0;
-    Flv::flv_header_t *head;
+//    boost::shared_ptr<Flv::flv_header_t> head;
     Flv::previous_size_t   previous = 0;
-    Flv::flv_tag_t     *tag;
+    boost::shared_ptr<Flv::flv_tag_t> tag;
     
     // Make sure it's an SOL file
     if (stat(filespec.c_str(), &st) == 0) {
@@ -186,7 +186,7 @@
             // Read just the initial 9 byte header
            ifs.read(reinterpret_cast<char *>(buf->reference()), 
sizeof(Flv::flv_header_t));
            log_debug("header is: %s",  hexify(buf->reference(), 9, false));
-           head  = flv.decodeHeader(buf);
+           boost::shared_ptr<Flv::flv_header_t> head = flv.decodeHeader(buf);
            if (head == 0) {
                log_error("Couldn't decode the header! %s",  
hexify(buf->reference(), 9, false));
                exit(-1);
@@ -239,7 +239,7 @@
                   {
                       if (all) {
                           cerr << "FLV Tag type is: Audio" << endl;
-                          Flv::flv_audio_t *data = 
flv.decodeAudioData(*(buf->reference() + sizeof(Flv::flv_tag_t)));
+                          boost::shared_ptr<Flv::flv_audio_t> data = 
flv.decodeAudioData(*(buf->reference() + sizeof(Flv::flv_tag_t)));
                           cout << "\tSound Type is: "   << 
type_strs[data->type] << endl;
                           cout << "\tSound Size is: "   << 
size_strs[data->size] << endl;
                           cout << "\tSound Rate is: "   << 
rate_strs[data->rate] << endl;
@@ -251,7 +251,7 @@
                   {
                       if (all) {
                           cout << "FLV Tag type is: Video" << endl;
-                          Flv::flv_video_t *data = 
flv.decodeVideoData(*(buf->reference() + sizeof(Flv::flv_tag_t)));
+                          boost::shared_ptr<Flv::flv_video_t> data = 
flv.decodeVideoData(*(buf->reference() + sizeof(Flv::flv_tag_t)));
                           cout << "\tCodec ID is: "   << 
codec_strs[data->codecID] << endl;
                           cout << "\tFrame Type is: " << 
frame_strs[data->type] << endl;
                       }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]