Name: libmm-player
Summary: Multimedia Framework Player Library
-Version: 1.0.1
+Version: 1.0.2
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
break;
case GST_RESOURCE_ERROR_NOT_FOUND:
case GST_RESOURCE_ERROR_OPEN_READ:
- if (MMPLAYER_IS_HTTP_STREAMING(player) || MMPLAYER_IS_HTTP_LIVE_STREAMING(player)
- || MMPLAYER_IS_RTSP_STREAMING(player)) {
+ if (MMPLAYER_IS_STREAMING(player)) {
trans_err = MM_ERROR_PLAYER_STREAMING_CONNECTION_FAIL;
break;
}
case GST_RESOURCE_ERROR_READ:
- if (MMPLAYER_IS_HTTP_STREAMING(player) || MMPLAYER_IS_HTTP_LIVE_STREAMING(player)
- || MMPLAYER_IS_RTSP_STREAMING(player)) {
+ if (MMPLAYER_IS_STREAMING(player)) {
trans_err = MM_ERROR_PLAYER_STREAMING_FAIL;
break;
- } else if (message != NULL && message->src != NULL) {
+ }
+
+ if (message != NULL && message->src != NULL) {
storage_state_e storage_state = STORAGE_STATE_UNMOUNTABLE;
mmplayer_path_type_e path_type = MMPLAYER_PATH_MAX;
__mmplayer_add_sink(player, sink, FALSE);
- if (gst_element_sync_state_with_parent(queue) == GST_STATE_CHANGE_FAILURE) {
+ if (!gst_element_sync_state_with_parent(queue)) {
LOGE("failed to sync state");
goto ERROR;
}
- if (gst_element_sync_state_with_parent(sink) == GST_STATE_CHANGE_FAILURE) {
+ if (!gst_element_sync_state_with_parent(sink)) {
LOGE("failed to sync state");
goto ERROR;
}
goto ERROR;
}
- if (gst_element_sync_state_with_parent(queue2) == GST_STATE_CHANGE_FAILURE) {
+ if (!gst_element_sync_state_with_parent(queue2)) {
LOGE("failed to sync queue2 state with parent");
goto ERROR;
}
"max-size-buffers", 0, NULL); // disable or automatic
}
- if (gst_element_sync_state_with_parent(decodebin) == GST_STATE_CHANGE_FAILURE) {
+ if (!gst_element_sync_state_with_parent(decodebin)) {
LOGE("failed to sync decodebin state with parent");
goto ERROR;
}