int cb_param;
char stream_type[MAX_STREAM_TYPE_LEN];
int stream_index;
+ int client_pid;
pa_threaded_mainloop *m;
pa_context *c;
if (!proplist)
return -1;
pa_proplist_sets(proplist, PA_PROP_MEDIA_ROLE, h->stream_type);
+ pa_proplist_setf(proplist, PA_PROP_APPLICATION_PROCESS_ID_ORIGIN, "%d", h->client_pid);
if (h->stream_index != -1)
pa_proplist_setf(proplist, PA_PROP_MEDIA_PARENT_ID, "%d", h->stream_index);
p->stop_cb = param->stop_cb;
p->cb_param = param->param;
MMSOUND_STRNCPY(p->filename, param->pfilename, MM_SOUND_MAX_FILENAME);
+ p->client_pid = param->pid;
p->stream_index = param->stream_index;
MMSOUND_STRNCPY(p->stream_type, param->stream_type, MAX_STREAM_TYPE_LEN);