[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9571: Use iostreams for stuff we alw
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9571: Use iostreams for stuff we always want printed. |
Date: |
Thu, 07 Aug 2008 20:34:31 -0600 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9571
committer: address@hidden
branch nick: rtmp
timestamp: Thu 2008-08-07 20:34:31 -0600
message:
Use iostreams for stuff we always want printed.
modified:
utilities/flvdumper.cpp
=== modified file 'utilities/flvdumper.cpp'
--- a/utilities/flvdumper.cpp 2008-08-08 02:29:57 +0000
+++ b/utilities/flvdumper.cpp 2008-08-08 02:34:31 +0000
@@ -176,16 +176,16 @@
ifs.read(reinterpret_cast<char *>(buf.reference()),
sizeof(Flv::flv_header_t));
head = flv.decodeHeader(&buf);
if ((head->type & Flv::FLV_VIDEO) && (head->type & Flv::FLV_AUDIO))
{
- log_debug("FLV File type: Video and Audio");
+ cerr <<"FLV File type: Video and Audio" << endl;
} else if (head->type && Flv::FLV_VIDEO) {
- log_debug("FLV File type: Video");
+ cerr << "FLV File type: Video" << endl;
} else if (head->type && Flv::FLV_AUDIO) {
- log_debug("FLV File type: Audio");
+ cerr <<"FLV File type: Audio" << endl;
}
log_debug("FLV Version: %d (should always be 1)",
int(head->version));
boost::uint32_t headsize = flv.convert24(head->head_size);
- log_debug("FLV Header size: %d (should always be 9)", headsize);
+ cerr << "FLV Header size: " << headsize << " (should always be 9)"
<< endl;
// Extract all the Tags
size_t total = st.st_size - sizeof(Flv::flv_header_t);
while (total) {
@@ -203,6 +203,7 @@
ifs.read(reinterpret_cast<char *>(buf.reference()), bodysize);
// Got to the end of the file
if (ifs.eof()) {
+ cerr << "end of file" << endl;
break;
}
total -= bodysize;
@@ -219,14 +220,14 @@
}
case Flv::TAG_VIDEO:
{
- log_debug("FLV Tag type is: Video");
+ cerr << "FLV Tag type is: Video" << endl;
Flv::flv_video_t *data =
flv.decodeVideoData(*(buf.reference() + sizeof(Flv::flv_tag_t)));
cerr << "Codec ID is: " << codec_strs[data->codecID] <<
endl;
cerr << "Frame Type is: " << frame_strs[data->type] <<
endl;
break;
}
case Flv::TAG_METADATA:
- log_debug("FLV Tag type is: MetaData");
+ cerr << "FLV Tag type is: MetaData" << endl;
Element *metadata = flv.decodeMetaData(buf.reference(),
bodysize);
metadata->dump();
continue;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9571: Use iostreams for stuff we always want printed.,
rob <=