[Red5commits] [2453] don't execute (synchronized) "pullAndPush" for live streams

jbauch luke at codegent.com
Tue Oct 30 23:52:22 PDT 2007


don't execute (synchronized) "pullAndPush" for live streams


Timestamp: 10/26/07 15:13:21 CEST (5 days ago) 
Change: 2453 
Author: jbauch

Files (see diff or trac for details): 
java/server/trunk/src/org/red5/server/stream/PlaylistSubscriberStream.java


Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/2453

Index: /java/server/trunk/src/org/red5/server/stream/PlaylistSubscriberStream.java
===================================================================
--- /java/server/trunk/src/org/red5/server/stream/PlaylistSubscriberStream.java (revision 2442)
+++ /java/server/trunk/src/org/red5/server/stream/PlaylistSubscriberStream.java (revision 2453)
@@ -591,4 +591,9 @@
 	 */
 	public void written(Object message) {
+		if (!engine.isPullMode) {
+			// Not needed for live streams
+			return;
+		}
+		
 		try {
 			engine.pullAndPush();
@@ -1387,4 +1392,9 @@
          */
         private void ensurePullAndPushRunning() {
+        	if (!isPullMode) {
+        		// We don't need this for live streams
+        		return;
+        	}
+        	
 			if (pullAndPushFuture == null) {
 				synchronized (this) {


Note:
Diffs are chopped if more than 25k.
This is to get past the limit on the mailing list.



More information about the Red5commits mailing list