Browse Source

[media] dvb-usb: don't return error if stream stop

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Malcolm Priestley 14 years ago
parent
commit
dca6b74bb3
1 changed files with 3 additions and 2 deletions
  1. 3 2
      drivers/media/dvb/dvb-usb/dvb-usb-dvb.c

+ 3 - 2
drivers/media/dvb/dvb-usb/dvb-usb-dvb.c

@@ -26,9 +26,10 @@ static int dvb_usb_ctrl_feed(struct dvb_demux_feed *dvbdmxfeed, int onoff)
 
 		if (adap->props.streaming_ctrl != NULL) {
 			ret = adap->props.streaming_ctrl(adap, 0);
-			err("error while stopping stream.");
-			if (ret < 0)
+			if (ret < 0) {
+				err("error while stopping stream.");
 				return ret;
+			}
 		}
 	}