winlin

srs-librtmp: implements play stream.

@@ -239,12 +239,17 @@ int srs_play_stream(srs_rtmp_t rtmp) @@ -239,12 +239,17 @@ int srs_play_stream(srs_rtmp_t rtmp)
239 return ret; 239 return ret;
240 } 240 }
241 241
242 - return ERROR_SUCCESS; 242 + return ret;
243 } 243 }
244 244
245 int srs_publish_stream(srs_rtmp_t rtmp) 245 int srs_publish_stream(srs_rtmp_t rtmp)
246 { 246 {
247 - return ERROR_SUCCESS; 247 + int ret = ERROR_SUCCESS;
  248 +
  249 + srs_assert(rtmp != NULL);
  250 + Context* context = (Context*)rtmp;
  251 +
  252 + return ret;
248 } 253 }
249 254
250 int srs_ssl_enabled() 255 int srs_ssl_enabled()