gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10268: Correct NetStream.play() imp


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10268: Correct NetStream.play() implementation and add comment.
Date: Wed, 12 Nov 2008 16:57:01 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10268
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Wed 2008-11-12 16:57:01 +0100
message:
  Correct NetStream.play() implementation and add comment.
modified:
  libcore/TextField.cpp
  libcore/asobj/NetStream_as.cpp
    ------------------------------------------------------------
    revno: 10263.1.1
    committer: Benjamin Wolsey <address@hidden>
    branch nick: work
    timestamp: Wed 2008-11-12 16:31:45 +0100
    message:
      Remove very annoying debugging line in TextField.
      
      Start new movie whenever play() is called in NetStream.
    modified:
      libcore/TextField.cpp
      libcore/asobj/NetStream_as.cpp
=== modified file 'libcore/TextField.cpp'
--- a/libcore/TextField.cpp     2008-11-12 09:21:48 +0000
+++ b/libcore/TextField.cpp     2008-11-12 15:31:45 +0000
@@ -309,7 +309,6 @@
 void
 TextField::display()
 {
-    GNASH_REPORT_FUNCTION;
 
     registerTextVariable();
 

=== modified file 'libcore/asobj/NetStream_as.cpp'
--- a/libcore/asobj/NetStream_as.cpp    2008-11-12 09:23:42 +0000
+++ b/libcore/asobj/NetStream_as.cpp    2008-11-12 15:31:45 +0000
@@ -839,13 +839,8 @@
 void
 NetStream_as::play(const std::string& c_url)
 {
-       // Is it already playing ?
-       if ( m_parser.get() )
-       {
-               // TODO: check what to do in these cases
-               log_error("FIXME: NetStream.play() called while already 
streaming");
-               return;
-       }
+       // It doesn't matter if the NetStream object is already streaming; this
+    // starts it again, possibly with a new URL.
 
        // Does it have an associated NetConnection ?
        if ( ! _netCon )


reply via email to

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