summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2cd63e7)
Change-Id: I17930382e9570c8ba6f37e2ca7783708610e2857
Name: libmm-player
Summary: Multimedia Framework Player Library
Name: libmm-player
Summary: Multimedia Framework Player Library
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
break;
case GST_RESOURCE_ERROR_NOT_FOUND:
case GST_RESOURCE_ERROR_OPEN_READ:
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:
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;
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;
storage_state_e storage_state = STORAGE_STATE_UNMOUNTABLE;
mmplayer_path_type_e path_type = MMPLAYER_PATH_MAX;
__mmplayer_add_sink(player, sink, FALSE);
__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;
}
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;
}
LOGE("failed to sync state");
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;
}
LOGE("failed to sync queue2 state with parent");
goto ERROR;
}
"max-size-buffers", 0, NULL); // disable or automatic
}
"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;
}
LOGE("failed to sync decodebin state with parent");
goto ERROR;
}