Name: libmm-player
Summary: Multimedia Framework Player Library
-Version: 0.6.287
+Version: 0.6.288
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
num_of_attrs = ARRAY_SIZE(player_attrs);
- base = g_try_new(MMAttrsConstructInfo, num_of_attrs);
+ base = g_try_new(MMAttrsConstructInfo, (gsize)num_of_attrs);
if (!base) {
LOGE("failed to alloc attrs constructor");
return NULL;
GstStream *stream = gst_message_streams_selected_get_stream(msg, i);
mmplayer_track_type_e type = __mmplayer_convert_gst_stream_type_to_track_type(
gst_stream_get_stream_type(stream));
+ if (type == MM_PLAYER_TRACK_TYPE_MAX) {
+ LOGD("not supported track type");
+ gst_object_unref(stream);
+ break;
+ }
LOGD (" Stream #%d : %s\n", i, gst_stream_get_stream_id(stream));
if (player->track[type].active_track_index == INVALID_TRACK_INDEX) {
int stream_index = INVALID_TRACK_INDEX;
}
gst_object_unref(stream);
}
- gst_object_unref (collection);
+ gst_object_unref(collection);
}
} break;
g_object_get(G_OBJECT(mainbin[MMPLAYER_M_DEMUXED_S_BUFFER].gst),
"curr-size-bytes", &curr_size_bytes, NULL);
LOGD("curr_size_bytes of multiqueue = %d", curr_size_bytes);
- buffered_total += curr_size_bytes;
+ buffered_total += (gint64)curr_size_bytes;
}
if (avg_byterate > 0)
MMPLAYER_RETURN_IF_FAIL(player && tf && caps);
- MMPLAYER_LOG_GST_CAPS_TYPE(caps);
MMPLAYER_FREEIF(player->type_caps_str);
player->type_caps_str = gst_caps_to_string(caps);
- if (player->type_caps_str)
- LOGD("[handle: %p] media type %s found, probability %d%% / %d",
- player, player->type_caps_str, probability, gst_caps_get_size(caps));
+ LOGD("[handle: %p] media type %s found, probability %d%% / %d",
+ player, player->type_caps_str, probability, gst_caps_get_size(caps));
if ((!MMPLAYER_IS_RTSP_STREAMING(player)) &&
(g_strrstr(player->type_caps_str, "audio/x-raw-int"))) {